3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function __lambda_func() { return print 'no'; } } namespace Bar { function yuno($x) { $x(); } } namespace { function __lambda_func() { return print 'no'; } Bar\yuno(function() { return print 'OK'; }); $fn = create_function("xyz", "return 'OK';"); var_dump($fn()); }

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.60.0100.01016.63
8.3.50.0120.00921.99
8.3.40.0070.01418.94
8.3.30.0110.00418.54
8.3.20.0040.00420.21
8.3.10.0050.00323.60
8.3.00.0040.00419.38
8.2.180.0100.01016.63
8.2.170.0140.00722.96
8.2.160.0100.00320.39
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0060.00317.38
8.2.120.0040.00426.35
8.2.110.0060.00320.22
8.2.100.0060.00617.91
8.2.90.0090.00019.23
8.2.80.0090.00017.97
8.2.70.0050.00317.61
8.2.60.0030.00517.92
8.2.50.0000.00818.07
8.2.40.0000.00719.28
8.2.30.0000.00720.54
8.2.20.0000.01017.72
8.2.10.0040.00418.05
8.2.00.0060.00318.07
8.1.280.0100.00325.92
8.1.270.0070.00323.92
8.1.260.0040.00428.09
8.1.250.0050.00328.09
8.1.240.0030.00622.63
8.1.230.0110.00017.79
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00917.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0040.00420.39
8.1.160.0030.00621.95
8.1.150.0050.00318.82
8.1.140.0080.00019.52
8.1.130.0040.00417.52
8.1.120.0000.00717.41
8.1.110.0000.00717.39
8.1.100.0000.00817.41
8.1.90.0040.00417.38
8.1.80.0050.00217.43
8.1.70.0000.00917.40
8.1.60.0000.00717.44
8.1.50.0040.00417.52
8.1.40.0040.00417.48
8.1.30.0000.00917.56
8.1.20.0040.00417.54
8.1.10.0030.00617.46
8.1.00.0030.00617.45
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0050.00318.29
8.0.270.0030.00317.17
8.0.260.0000.00617.29
8.0.250.0000.00816.92
8.0.240.0030.00516.92
8.0.230.0030.00316.83
8.0.220.0030.00316.88
8.0.210.0050.00216.94
8.0.200.0000.00816.89
8.0.190.0040.00416.89
8.0.180.0000.00816.91
8.0.170.0030.00516.93
8.0.160.0000.00716.97
8.0.150.0000.00716.80
8.0.140.0000.00716.77
8.0.130.0060.00313.34
8.0.120.0050.00316.88
8.0.110.0030.00516.93
8.0.100.0020.00516.83
8.0.90.0040.00417.07
8.0.80.0120.00316.91
8.0.70.0030.00616.83
8.0.60.0040.00416.84
8.0.50.0000.00716.88
8.0.30.0100.01217.17
8.0.20.0090.01017.40
8.0.10.0040.00416.86
8.0.00.0080.00916.66
7.4.330.0000.00516.95
7.4.320.0040.00416.64
7.4.300.0060.00016.40
7.4.290.0070.00016.59
7.4.280.0060.00316.54
7.4.270.0000.00716.41
7.4.260.0030.00316.45
7.4.250.0030.00416.48
7.4.240.0050.00216.54
7.4.230.0040.00416.69
7.4.220.0150.00316.62
7.4.210.0040.01116.67
7.4.200.0030.00316.57
7.4.160.0030.01216.61
7.4.150.0070.01017.40
7.4.140.0080.01017.86
7.4.130.0110.01016.50
7.4.120.0100.01016.62
7.4.110.0070.01016.42
7.4.100.0130.00316.48
7.4.90.0070.01016.41
7.4.80.0130.00319.39
7.4.70.0100.01016.35
7.4.60.0060.00916.50
7.4.50.0040.01116.37
7.4.40.0030.01316.43
7.4.30.0090.00916.67
7.4.00.0030.01415.00
7.3.330.0080.00013.29
7.3.320.0060.00013.30
7.3.310.0000.00716.27
7.3.300.0070.00016.18
7.3.290.0100.01016.30
7.3.280.0110.00916.32
7.3.270.0090.00817.40
7.3.260.0120.00616.61
7.3.250.0110.01116.42
7.3.240.0080.01316.46
7.3.230.0110.00716.43
7.3.210.0030.01316.38
7.3.200.0080.00816.28
7.3.190.0070.01016.43
7.3.180.0080.00816.37
7.3.170.0100.00616.34
7.3.160.0200.00016.43
7.3.120.0100.00614.71
7.3.110.0060.01214.98
7.3.100.0100.00714.59
7.3.90.0090.00614.83
7.3.80.0040.01114.92
7.3.70.0000.01014.88
7.3.60.0070.01114.85
7.3.50.0000.01214.91
7.3.40.0070.00714.88
7.3.30.0030.01014.66
7.3.20.0030.01416.57
7.3.10.0070.00616.58
7.3.00.0050.00916.62
7.2.330.0140.00316.38
7.2.320.0130.00616.44
7.2.310.0060.01016.39
7.2.300.0070.01016.30
7.2.290.0030.01416.81
7.2.250.0120.00614.88
7.2.240.0090.00915.03
7.2.230.0070.00715.18
7.2.220.0000.01314.93
7.2.210.0100.00714.90
7.2.200.0060.00915.05
7.2.190.0100.00315.10
7.2.180.0030.01015.01
7.2.170.0110.00714.79
7.2.130.0090.00916.45
7.2.120.0100.00716.46
7.2.110.0080.01216.86
7.2.100.0040.00816.68
7.2.90.0100.00616.73
7.2.80.0070.01316.90
7.2.70.0060.01516.45
7.2.60.0110.00316.55
7.2.50.0150.00616.90
7.2.40.0120.00916.77
7.2.30.0160.00316.75
7.2.20.0110.00716.68
7.2.10.0190.00316.63
7.2.00.0120.00616.47
7.1.330.0000.01515.80
7.1.320.0040.01415.50
7.1.310.0080.00815.73
7.1.300.0100.00315.49
7.1.290.0000.00815.74
7.1.280.0060.00615.55
7.1.270.0030.01415.73
7.1.260.0030.01015.75
7.1.250.0170.00315.57
7.1.200.0110.00015.61
7.1.100.0030.00617.98
7.1.70.0030.00517.08
7.1.60.0070.01719.12
7.1.50.0140.00017.04
7.1.00.0000.07722.36
7.0.200.0030.00316.52
7.0.60.0070.08719.97
7.0.50.0030.05317.88
7.0.40.0070.05720.27
7.0.30.0230.08020.12
7.0.20.0300.07320.12
7.0.10.0000.04720.25
7.0.00.0170.05020.18
5.6.280.0000.07020.93
5.6.210.0070.05020.55
5.6.200.0030.07318.15
5.6.190.0000.04720.68
5.6.180.0300.07320.48
5.6.170.0330.06720.39
5.6.160.0030.04320.55
5.6.150.0100.04018.21
5.6.140.0100.05718.21
5.6.130.0070.08018.14
5.6.120.0100.06021.12
5.6.110.0070.08720.90
5.6.100.0100.04021.13
5.6.90.0130.07720.96
5.6.80.0030.06320.54
5.5.350.3630.04020.44
5.5.340.0030.03717.92
5.5.330.0100.08720.26
5.5.320.0000.04020.51
5.5.310.0230.07320.28
5.5.300.0030.07717.95
5.5.290.0000.06317.98
5.5.280.0130.05720.77
5.5.270.0100.05020.96
5.5.260.0230.07720.77
5.5.250.0030.06720.80
5.5.240.0300.07720.27

preferences:
30.61 ms | 401 KiB | 5 Q