3v4l.org

run code in 300+ PHP versions simultaneously
<?php $callback = function () { echo 'test'; function test(boolean $parameter) { echo 'test2'; } test(true); }; $callback();

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.0030.00618.31
8.3.120.0070.00320.67
8.3.110.0060.00320.94
8.3.100.0000.00924.06
8.3.90.0040.00426.77
8.3.80.0100.00017.97
8.3.70.0070.01116.50
8.3.60.0100.01018.45
8.3.50.0070.01118.15
8.3.40.0110.00318.78
8.3.30.0060.01018.77
8.3.20.0000.00918.73
8.3.10.0000.00823.42
8.3.00.0070.00021.71
8.2.250.0060.00316.61
8.2.240.0030.00617.36
8.2.230.0000.00822.58
8.2.220.0000.00737.54
8.2.210.0040.01126.77
8.2.200.0060.00616.75
8.2.190.0070.00716.58
8.2.180.0090.00618.54
8.2.170.0120.00322.96
8.2.160.0100.00319.32
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00819.77
8.2.120.0080.00026.35
8.2.110.0030.00522.09
8.2.100.0000.01117.91
8.2.90.0040.00417.75
8.2.80.0050.00318.86
8.2.70.0040.00417.93
8.2.60.0060.00318.03
8.2.50.0000.00818.10
8.2.40.0000.00819.30
8.2.30.0040.00420.60
8.2.20.0060.00618.04
8.2.10.0020.00518.06
8.2.00.0000.00719.41
8.1.300.0000.00816.11
8.1.290.0060.00330.84
8.1.280.0140.00725.92
8.1.270.0040.00420.60
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0060.00318.94
8.1.230.0040.00817.70
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.35
8.1.190.0000.01017.40
8.1.180.0050.00318.10
8.1.170.0040.00418.53
8.1.160.0040.00418.85
8.1.150.0030.00518.86
8.1.140.0050.00320.80
8.1.130.0040.00420.23
8.1.120.0000.00717.54
8.1.110.0040.00417.41
8.1.100.0060.00517.53
8.1.90.0000.00917.44
8.1.80.0070.00017.45
8.1.70.0080.00017.45
8.1.60.0070.00417.48
8.1.50.0000.00817.41
8.1.40.0050.00217.37
8.1.30.0080.00017.66
8.1.20.0040.00417.68
8.1.10.0050.00217.44
8.1.00.0000.00817.56
8.0.300.0060.00318.77
8.0.290.0050.00216.75
8.0.280.0000.00718.38
8.0.270.0040.00417.30
8.0.260.0000.00620.24
8.0.250.0000.00817.05
8.0.240.0030.00316.89
8.0.230.0070.00017.01
8.0.220.0070.00016.98
8.0.210.0000.00716.92
8.0.200.0050.00316.87
8.0.190.0080.00017.05
8.0.180.0040.00416.98
8.0.170.0080.00017.03
8.0.160.0040.00417.07
8.0.150.0080.00016.90
8.0.140.0040.00416.86
8.0.130.0000.00613.40
8.0.120.0040.00416.95
8.0.110.0030.00616.85
8.0.100.0030.00516.83
8.0.90.0000.00717.01
8.0.80.0100.00517.00
8.0.70.0000.00716.86
8.0.60.0040.00417.02
8.0.50.0000.00816.74
8.0.30.0130.00717.00
8.0.20.0090.01517.40
8.0.10.0030.00516.96
8.0.00.0050.01616.74
7.4.330.0000.00515.55
7.4.320.0030.00316.59
7.4.300.0000.00716.40
7.4.290.0000.01016.50
7.4.280.0040.00416.41
7.4.270.0000.00816.48
7.4.260.0030.00316.58
7.4.250.0050.00316.60
7.4.240.0040.00416.41
7.4.230.0040.00416.38
7.4.220.0040.00416.38
7.4.210.0090.01016.44
7.4.200.0030.00316.49
7.4.160.0070.00916.42
7.4.140.0110.00917.86
7.4.130.0100.01316.38
7.4.120.0100.01016.49
7.4.110.0110.00716.37
7.4.100.0130.00816.46
7.4.90.0060.01116.65
7.4.80.0100.00619.39
7.4.70.0070.01016.49
7.4.60.0120.00616.42
7.4.50.0110.00716.62
7.4.40.0090.01316.62
7.4.10.0000.02015.05
7.4.00.0090.00915.01
7.3.330.0000.00513.27
7.3.320.0050.00013.15
7.3.310.0030.00316.31
7.3.300.0030.00316.15
7.3.290.0000.00716.16
7.3.280.0100.00516.30
7.3.260.0110.01116.47
7.3.240.0090.01016.42
7.3.230.0100.01016.58
7.3.210.0100.00616.16
7.3.200.0100.00616.31
7.3.190.0120.00916.21
7.3.180.0090.00616.58
7.3.170.0060.00916.35
7.3.160.0030.01616.34
7.3.130.0130.00614.80
7.3.120.0050.01214.86
7.3.110.0100.00414.84
7.3.100.0120.00214.93
7.3.90.0070.00714.97
7.3.80.0050.00714.60
7.3.70.0020.01214.90
7.3.60.0020.01114.80
7.3.50.0090.00014.81
7.3.40.0050.00614.85
7.3.30.0060.00814.70
7.3.20.0090.00816.69
7.3.10.0020.01116.72
7.3.00.0030.01016.75
7.2.330.0160.00616.63
7.2.320.0170.00716.66
7.2.310.0110.00816.82
7.2.300.0090.00916.69
7.2.290.0080.00816.36
7.2.260.0060.00614.89
7.2.250.0090.00814.92
7.2.240.0040.01314.88
7.2.230.0070.00714.86
7.2.220.0080.00514.68
7.2.210.0060.00814.99
7.2.200.0070.00414.94
7.2.190.0030.00914.99
7.2.180.0080.00515.07
7.2.170.0060.00815.12
7.2.160.0000.01714.76
7.2.150.0120.00016.84
7.2.140.0060.00616.79
7.2.130.0040.01216.87
7.2.120.0030.00617.01
7.2.110.0040.01116.82
7.2.100.0100.00616.68
7.2.90.0810.00515.67
7.2.80.0790.00315.76
7.2.70.0750.00515.97
7.2.60.0980.00915.83
7.2.50.0770.00615.94
7.2.40.1390.00715.85
7.2.30.0740.00615.88
7.2.20.1230.00715.64
7.2.10.1360.00815.61
7.2.00.0930.01015.87
7.1.330.0070.00915.66
7.1.320.0110.00515.64
7.1.310.0080.00715.61
7.1.300.0040.00715.76
7.1.290.0020.01315.65
7.1.280.0030.01115.61
7.1.270.0110.00515.61
7.1.260.0050.00815.77
7.1.250.0080.00815.75
7.1.240.0070.00715.69
7.1.230.0060.00615.80
7.1.220.0030.01015.41
7.1.210.1420.00714.62
7.1.200.1110.00914.66
7.1.190.1020.00514.42
7.1.180.0770.00814.74
7.1.170.0860.00814.72
7.1.160.0650.01014.59
7.1.150.1000.00714.60
7.1.140.0840.01014.70
7.1.130.1130.00614.73
7.1.120.1080.00714.76
7.1.110.1250.01014.82
7.1.100.1100.00514.75
7.1.90.1260.00914.67
7.1.80.0770.00514.68
7.1.70.1180.00514.77
7.1.60.1400.00723.71
7.1.50.1900.01123.72
7.1.40.1720.00923.58
7.1.30.1460.00823.47
7.1.20.2020.00723.40
7.1.10.1770.00314.68
7.1.00.0820.00714.79
7.0.330.0000.01115.23
7.0.320.0070.00715.41
7.0.310.0070.00415.45
7.0.300.0090.00615.35
7.0.290.0000.01215.37
7.0.280.0060.00315.54
7.0.270.0040.00415.16
7.0.260.0090.00315.19
7.0.250.0000.01115.33
7.0.240.0070.00715.38
7.0.230.0120.00315.29
7.0.220.0100.00315.43
7.0.210.0080.00315.38
7.0.200.0030.01015.09
7.0.190.0060.00615.34
7.0.180.0100.00315.15
7.0.170.0090.00315.45
7.0.160.0080.01215.46
7.0.150.0060.00615.13
7.0.140.0060.00315.29
7.0.130.0090.00615.46
7.0.120.0030.01415.22
7.0.110.0110.00715.43
7.0.100.0070.00315.30
7.0.90.0060.00915.48
7.0.80.0070.00715.37
7.0.70.0030.01215.38
7.0.60.0030.01215.40
7.0.50.0000.01115.52
7.0.40.0090.00613.32
7.0.30.0030.01013.23
7.0.20.0060.00613.52
7.0.10.0040.01113.35
7.0.00.0060.00613.13
5.6.400.0030.01014.28
5.6.390.0030.00714.04
5.6.380.0000.01514.60
5.6.370.0030.01014.47
5.6.360.0030.00713.99
5.6.350.0000.01114.64
5.6.340.0000.00814.48
5.6.330.0070.00714.45
5.6.320.0000.01214.32
5.6.310.0030.00914.50
5.6.300.0060.00914.55
5.6.290.0030.00914.47
5.6.280.0000.01514.26
5.6.270.0070.00714.38
5.6.260.0000.00814.30
5.6.250.0030.01014.20
5.6.240.0040.01114.53
5.6.230.0070.01014.07
5.6.220.0100.00714.39
5.6.210.0040.00814.58
5.6.200.0040.00414.13
5.6.190.0070.01114.31
5.6.180.0100.00314.36
5.6.170.0070.00414.05
5.6.160.0000.00914.03
5.6.150.0060.00614.12
5.6.140.0140.00014.46
5.6.130.0060.00614.23
5.6.120.0040.01214.39
5.6.110.0070.00414.49
5.6.100.0070.00714.21
5.6.90.0100.00314.35
5.6.80.0070.00714.25
5.6.70.0000.01314.00
5.6.60.0070.00314.14
5.6.50.0040.01214.33
5.6.40.0090.00314.29
5.6.30.0090.00614.48
5.6.20.0030.01414.27
5.6.10.0000.01214.51
5.6.00.0060.01014.24

preferences:
35.09 ms | 406 KiB | 6 Q