3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create function with the name defined in variable $functionName function MyFunction($argument) { return 'Argument passed is: '.$argument; } $functionName = 'MyFunction'; var_dump(MyFunction('Calling MyFunction directly.')); var_dump($functionName('Calling MyFunction with string.'));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.130.0060.00318.56
8.3.120.0090.00918.70
8.3.110.0000.00820.94
8.3.100.0060.00318.30
8.3.90.0150.00318.27
8.3.80.0060.00318.43
8.3.70.0110.01116.58
8.3.60.0090.00916.50
8.3.50.0090.00922.15
8.3.40.0080.00618.97
8.3.30.0070.00719.17
8.3.20.0080.00020.21
8.3.10.0080.00023.53
8.3.00.0050.00319.26
8.2.250.0080.00018.28
8.2.240.0060.00317.28
8.2.230.0050.00522.58
8.2.220.0040.00437.54
8.2.210.0110.00826.77
8.2.200.0060.00318.29
8.2.190.0150.00016.75
8.2.180.0130.00325.92
8.2.170.0040.01118.91
8.2.160.0110.00322.96
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00319.66
8.2.110.0120.00620.72
8.2.100.0090.00317.72
8.2.90.0080.00019.23
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0030.00617.63
8.2.50.0030.00619.47
8.2.40.0060.00317.62
8.2.30.0030.00618.31
8.2.20.0040.00417.72
8.2.10.0050.00317.91
8.2.00.0070.00017.71
8.1.300.0050.00517.80
8.1.290.0090.00018.88
8.1.280.0130.00325.92
8.1.270.0050.00224.66
8.1.260.0090.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00319.09
8.1.230.0040.00817.61
8.1.220.0040.00417.76
8.1.210.0030.00518.82
8.1.200.0090.00017.35
8.1.190.0050.00319.01
8.1.180.0040.00418.10
8.1.170.0090.00718.49
8.1.160.0070.00021.96
8.1.150.0030.00518.63
8.1.140.0000.00917.26
8.1.130.0040.00417.35
8.1.120.0000.00717.27
8.1.110.0040.00417.27
8.1.100.0070.00017.40
8.1.90.0020.00517.39
8.1.80.0000.00817.30
8.1.70.0000.00717.40
8.1.60.0070.00317.64
8.1.50.0000.00917.47
8.1.40.0030.00617.52
8.1.30.0080.00417.66
8.1.20.0110.00717.57
8.1.10.0100.00517.48
8.1.00.0120.00617.42
8.0.300.0030.00619.89
8.0.290.0000.00716.75
8.0.280.0000.00818.36
8.0.270.0000.00717.27
8.0.260.0060.00016.82
8.0.250.0000.00716.96
8.0.240.0000.00916.93
8.0.230.0070.00016.98
8.0.220.0030.00316.74
8.0.210.0040.00416.79
8.0.200.0000.00716.97
8.0.190.0070.00016.97
8.0.180.0040.00716.90
8.0.170.0040.00416.95
8.0.160.0130.00216.81
8.0.150.0100.00416.82
8.0.140.0130.00216.80
8.0.130.0140.00015.14
8.0.120.0130.00316.91
8.0.110.0100.00616.84
8.0.100.0060.00516.80
8.0.90.0120.00316.74
8.0.80.0100.00816.71
8.0.70.0130.00216.81
8.0.60.0040.00916.77
8.0.50.0100.00516.63
8.0.30.0110.00816.93
8.0.20.0110.00717.09
8.0.10.0140.00916.95
8.0.00.0090.00716.83
7.4.330.0050.00015.13
7.4.320.0030.00316.46
7.4.300.0040.00416.59
7.4.290.0060.00516.57
7.4.280.0040.00416.54
7.4.270.0090.00516.52
7.4.260.0120.00516.50
7.4.250.0120.00416.53
7.4.240.0090.00316.48
7.4.230.0100.00216.49
7.4.220.0140.00616.61
7.4.210.0110.00616.48
7.4.200.0140.00016.52
7.4.190.0100.00516.59
7.4.180.0160.00816.63
7.4.160.0080.01116.52
7.4.150.0140.00616.83
7.4.140.0100.00817.12
7.4.130.0080.00916.44
7.4.120.0110.00616.49
7.4.110.0110.00716.53
7.4.100.0110.00516.45
7.4.90.0110.00516.53
7.4.80.0100.00917.14
7.4.70.0080.00916.56
7.4.60.0110.00816.51
7.4.50.0090.00716.43
7.4.40.0140.00616.32
7.4.30.0130.00816.33
7.4.20.0150.00416.43
7.4.10.0130.00616.44
7.4.00.0080.00916.14
7.3.330.0110.00514.61
7.3.320.0120.00314.82
7.3.310.0040.01116.29
7.3.300.0130.00216.29
7.3.290.0160.00616.27
7.3.280.0100.00816.26
7.3.270.0140.00416.59
7.3.260.0090.00916.36
7.3.250.0120.00916.32
7.3.240.0130.00616.33
7.3.230.0100.01116.24
7.3.220.0100.01116.33
7.3.210.0090.00916.37
7.3.200.0110.00916.98
7.3.190.0140.00616.30
7.3.180.0080.01116.32
7.3.170.0130.00816.36
7.3.160.0140.00516.25
7.3.150.0090.01216.16
7.3.140.0160.00316.20
7.3.130.0130.00916.12
7.3.120.0110.00715.95
7.3.110.0120.00616.15
7.3.100.0160.00516.24
7.3.90.0140.00816.30
7.3.80.0120.00616.28
7.3.70.0110.00816.28
7.3.60.0160.00516.40
7.3.50.0120.00716.32
7.3.40.0130.00616.34
7.3.30.0140.00616.32
7.3.20.0100.00816.84
7.3.10.0100.00816.70
7.3.00.0120.01216.79
7.2.340.0090.01016.30
7.2.330.0080.01016.38
7.2.320.0090.00916.28
7.2.310.0100.01016.35
7.2.300.0130.00716.33
7.2.290.0110.00916.31
7.2.280.0160.00616.21
7.2.270.0150.00516.21
7.2.260.0100.00916.37
7.2.250.0130.00816.32
7.2.240.0080.01116.32
7.2.230.0140.00716.29
7.2.220.0120.00916.29
7.2.210.0130.00816.35
7.2.200.0150.00616.40
7.2.190.0120.00716.42
7.2.180.0110.00816.42
7.2.170.0120.00716.42
7.2.160.0100.01016.39
7.2.150.0090.01016.95
7.2.140.0120.00816.88
7.2.130.0130.00616.98
7.2.120.0090.00916.97
7.2.110.0090.00916.97
7.2.100.0290.00616.95
7.2.90.0160.00416.93
7.2.80.0150.00616.95
7.2.70.0120.00716.84
7.2.60.0150.00816.93
7.2.50.0110.00916.88
7.2.40.0140.00616.85
7.2.30.0090.00916.87
7.2.20.0210.00916.86
7.2.10.0190.00816.91
7.2.00.0080.01116.88
7.1.330.0180.01015.85
7.1.320.0200.00515.94
7.1.310.0260.00416.01
7.1.300.0190.00715.84
7.1.290.0210.00615.91
7.1.280.0280.00815.90
7.1.270.0220.00315.90
7.1.260.0170.00715.84
7.1.250.0170.00815.82
7.1.240.0140.00915.82
7.1.230.0160.00815.90
7.1.220.0190.00715.91
7.1.210.0170.00715.82
7.1.200.0130.01115.85
7.1.190.0160.00915.80
7.1.180.0150.01015.86
7.1.170.0160.00915.84
7.1.160.0200.00615.82
7.1.150.0180.00715.86
7.1.140.0250.00615.82
7.1.130.0190.00515.81
7.1.120.0270.00815.86
7.1.110.0190.00715.86
7.1.100.0190.00615.82
7.1.90.0200.00715.83
7.1.80.0190.00515.91
7.1.70.0180.00916.09
7.1.60.0150.00816.19
7.1.50.0200.00516.03
7.1.40.0120.01016.03
7.1.30.0150.00915.94
7.1.20.0140.00916.10
7.1.10.0130.00915.98
7.1.00.0160.00615.95
7.0.330.0220.00515.59
7.0.320.0160.00715.61
7.0.310.0160.00815.54
7.0.300.0210.00815.55
7.0.290.0190.00615.57
7.0.280.0170.00715.52
7.0.270.0160.00615.51
7.0.260.0190.00815.57
7.0.250.0150.00915.72
7.0.240.0200.00415.61
7.0.230.0160.00815.70
7.0.220.0180.00515.65
7.0.210.0240.00415.57
7.0.200.0140.00715.86
7.0.190.0170.00915.82
7.0.180.0160.00615.75
7.0.170.0190.00615.76
7.0.160.0210.00415.62
7.0.150.0150.00615.72
7.0.140.0120.01015.74
7.0.130.0150.00715.86
7.0.120.0130.00815.87
7.0.110.0180.00415.70
7.0.100.0180.00515.63
7.0.90.0140.00715.69
7.0.80.0160.00415.66
7.0.70.0170.00515.68
7.0.60.0130.00915.63
7.0.50.0130.00615.71
7.0.40.0180.00615.49
7.0.30.0160.00615.56
7.0.20.0130.00815.44
7.0.10.0140.00915.51
7.0.00.0150.00815.49
5.6.400.0170.00915.82
5.6.390.0180.00815.82
5.6.380.0200.00815.88
5.6.370.0200.00515.84
5.6.360.0190.00615.86
5.6.350.0200.00415.83
5.6.340.0160.01015.82
5.6.330.0170.00815.81
5.6.320.0180.00715.88
5.6.310.0150.01015.81
5.6.300.0170.01216.70
5.6.290.0130.02616.78
5.6.280.0140.01716.92
5.6.270.0140.01416.89
5.6.260.0120.01616.82
5.6.250.0150.02016.79
5.6.240.0150.01616.82
5.6.230.0120.01816.85
5.6.220.0140.01416.80
5.6.210.0170.02116.86
5.6.200.0110.01816.93
5.6.190.0160.02616.89
5.6.180.0160.01416.80
5.6.170.0190.01516.95
5.6.160.0120.01916.85
5.6.150.0130.02516.85
5.6.140.0160.01416.81
5.6.130.0130.01516.79
5.6.120.0130.01816.89
5.6.110.0160.01416.84
5.6.100.0150.01316.77
5.6.90.0140.01616.71
5.6.80.0150.01416.58
5.6.70.0120.01516.65
5.6.60.0150.01216.65
5.6.50.0130.01916.61
5.6.40.0130.01416.62
5.6.30.0150.01516.56
5.6.20.0130.02116.67
5.6.10.0100.01816.65
5.6.00.0170.01216.60
5.5.380.0120.01716.10
5.5.370.0120.01716.08
5.5.360.0140.02416.01
5.5.350.0150.01916.03
5.5.340.0160.01316.11
5.5.330.0160.01416.17
5.5.320.0140.01516.17
5.5.310.0140.01616.21
5.5.300.0160.02316.13
5.5.290.0150.01416.14
5.5.280.0120.01616.17
5.5.270.0160.01716.16
5.5.260.0150.02016.15
5.5.250.0150.01416.08
5.5.240.0140.01516.03
5.5.230.0140.01515.87
5.5.220.0120.01416.02
5.5.210.0160.02015.93
5.5.200.0140.01415.99
5.5.190.0140.01515.95
5.5.180.0150.02315.89
5.5.170.0170.00715.57
5.5.160.0130.01515.98
5.5.150.0140.01416.03
5.5.140.0120.01615.91
5.5.130.0130.01515.89
5.5.120.0120.02415.98
5.5.110.0170.01616.04
5.5.100.0120.01815.98
5.5.90.0150.01416.03
5.5.80.0120.01916.00
5.5.70.0120.01616.03
5.5.60.0140.01316.09
5.5.50.0170.01816.04
5.5.40.0140.01516.05
5.5.30.0120.01716.11
5.5.20.0140.01415.94
5.5.10.0120.01815.89
5.5.00.0130.01615.90
5.4.450.0110.01214.03
5.4.440.0100.01613.99
5.4.430.0110.01114.01
5.4.420.0120.02013.93
5.4.410.0090.01313.90
5.4.400.0110.01113.88
5.4.390.0150.00913.86
5.4.380.0080.01313.82
5.4.370.0080.01613.82
5.4.360.0100.01313.87
5.4.350.0120.02013.88
5.4.340.0100.02013.88
5.4.330.0100.00612.57
5.4.320.0090.01413.81
5.4.310.0090.01413.94
5.4.300.0090.01413.86
5.4.290.0090.01413.90
5.4.280.0140.00913.80
5.4.270.0100.01613.86
5.4.260.0140.01013.92
5.4.250.0060.01813.89
5.4.240.0110.01213.96
5.4.230.0090.01413.77
5.4.220.0130.01213.81
5.4.210.0110.01113.77
5.4.200.0110.01313.72
5.4.190.0130.01013.78
5.4.180.0120.01313.82
5.4.170.0090.02313.82
5.4.160.0140.01213.81
5.4.150.0120.01113.82
5.4.140.0100.01313.37
5.4.130.0080.01413.43
5.4.120.0100.01313.42
5.4.110.0090.01413.39
5.4.100.0100.01213.35
5.4.90.0140.00913.46
5.4.80.0120.01113.41
5.4.70.0100.01613.42
5.4.60.0130.01313.46
5.4.50.0100.01513.39
5.4.40.0120.01013.37
5.4.30.0110.01113.48
5.4.20.0100.01413.42
5.4.10.0100.01613.44
5.4.00.0110.01913.25
5.3.290.0080.01513.59
5.3.280.0090.01413.36
5.3.270.0090.02113.46
5.3.260.0080.01513.50
5.3.250.0140.01313.45
5.3.240.0100.01413.41
5.3.230.0100.01413.39
5.3.220.0090.01313.43
5.3.210.0100.01313.45
5.3.200.0110.01113.35
5.3.190.0100.01813.41
5.3.180.0080.01613.49
5.3.170.0120.01213.48
5.3.160.0090.01513.48
5.3.150.0080.01513.55
5.3.140.0090.02013.48
5.3.130.0070.01613.42
5.3.120.0090.01413.41
5.3.110.0100.01513.42
5.3.100.0060.01713.46
5.3.90.0100.02013.46
5.3.80.0100.01713.46
5.3.70.0110.01313.43
5.3.60.0080.01313.56
5.3.50.0110.01413.45
5.3.40.0130.01213.44
5.3.30.0110.01213.50
5.3.20.0100.01413.46
5.3.10.0090.01113.26
5.3.00.0100.01213.33

preferences:
29.9 ms | 403 KiB | 5 Q