3v4l.org

run code in 300+ PHP versions simultaneously
<?php test(); function test(){ echo 'Test works'; } //output: Test works $closure = function(){ closure_test(); }; $closure(); function closure_test(){ echo 'Closure test works'; } //expected output: Closure test works //actual output: Fatal error: Call to undefined function closure_test()

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.00716.38
8.3.50.0130.00619.68
8.3.40.0040.01118.68
8.3.30.0110.00318.87
8.3.20.0070.00020.20
8.3.10.0070.00420.48
8.3.00.0000.00819.25
8.2.180.0140.00416.38
8.2.170.0000.01522.96
8.2.160.0090.00620.47
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00020.91
8.2.110.0090.00020.55
8.2.100.0090.00317.73
8.2.90.0040.00418.25
8.2.80.0040.00417.97
8.2.70.0050.00317.61
8.2.60.0040.00418.04
8.2.50.0030.00718.07
8.2.40.0050.00317.97
8.2.30.0070.00019.45
8.2.20.0040.00417.74
8.2.10.0040.00418.13
8.2.00.0040.00417.55
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00322.07
8.1.230.0040.00720.75
8.1.220.0080.00017.74
8.1.210.0040.00418.84
8.1.200.0130.00017.23
8.1.190.0030.00617.13
8.1.180.0000.00818.10
8.1.170.0000.00818.53
8.1.160.0040.00422.07
8.1.150.0070.00018.84
8.1.140.0050.00217.37
8.1.130.0030.00317.82
8.1.120.0000.00717.50
8.1.110.0060.00317.34
8.1.100.0000.00717.47
8.1.90.0070.00017.35
8.1.80.0070.00017.36
8.1.70.0030.00317.42
8.1.60.0040.00417.52
8.1.50.0030.00617.52
8.1.40.0040.00417.47
8.1.30.0080.00017.62
8.1.20.0000.00717.54
8.1.10.0060.00317.46
8.1.00.0000.00717.49
8.0.300.0040.00420.11
8.0.290.0000.00716.63
8.0.280.0000.00718.56
8.0.270.0000.00717.18
8.0.260.0000.00817.17
8.0.250.0040.00416.86
8.0.240.0050.00516.92
8.0.230.0030.00316.86
8.0.220.0000.00716.82
8.0.210.0000.00816.86
8.0.200.0000.00616.82
8.0.190.0040.00416.96
8.0.180.0000.00716.98
8.0.170.0000.00916.87
8.0.160.0000.00716.84
8.0.150.0070.00016.81
8.0.140.0050.00216.88
8.0.130.0060.00013.33
8.0.120.0060.00316.86
8.0.110.0000.00716.94
8.0.100.0070.00016.84
8.0.90.0040.00416.94
8.0.80.0070.01116.93
8.0.70.0030.00616.91
8.0.60.0040.00416.98
8.0.50.0000.00816.79
8.0.30.0110.00716.79
8.0.20.0100.01017.40
8.0.10.0050.00317.05
8.0.00.0120.00816.89
7.4.330.0050.00015.00
7.4.320.0000.00716.64
7.4.300.0040.00416.62
7.4.290.0070.00016.59
7.4.280.0120.00016.39
7.4.270.0000.00816.50
7.4.260.0030.00316.47
7.4.250.0040.00416.48
7.4.240.0080.00016.42
7.4.230.0030.00516.43
7.4.220.0090.01016.55
7.4.210.0060.00916.46
7.4.200.0000.00716.63
7.4.160.0100.01316.66
7.4.150.0070.01117.40
7.4.140.0100.00617.86
7.4.130.0120.01016.53
7.4.120.0040.01316.63
7.4.110.0120.00616.61
7.4.100.0130.00316.41
7.4.90.0030.01316.44
7.4.80.0090.00919.39
7.4.70.0040.01116.43
7.4.60.0070.01016.50
7.4.50.0000.00816.54
7.4.40.0070.01016.59
7.4.30.0040.01216.46
7.4.00.0060.01014.90
7.3.330.0020.00213.20
7.3.320.0020.00313.26
7.3.310.0030.00316.25
7.3.300.0070.00016.13
7.3.290.0100.00416.24
7.3.280.0100.00716.24
7.3.270.0070.01017.40
7.3.260.0090.00916.34
7.3.250.0140.00716.49
7.3.240.0120.00416.37
7.3.230.0140.00416.48
7.3.210.0090.01216.49
7.3.200.0140.00319.39
7.3.190.0130.00316.64
7.3.180.0110.00416.16
7.3.170.0150.00316.61
7.3.160.0090.00616.21
7.3.10.0160.00416.13
7.3.00.0180.00016.23
7.2.330.0090.01916.38
7.2.320.0120.00916.68
7.2.310.0140.00616.47
7.2.300.0130.00316.53
7.2.290.0030.01316.71
7.2.130.0140.00316.82
7.2.120.0060.00916.38
7.2.110.0090.00916.70
7.2.100.0100.00716.67
7.2.90.0080.00816.57
7.2.80.0040.01116.80
7.2.70.0090.00616.55
7.2.60.0070.00716.82
7.2.50.0150.00616.75
7.2.40.0120.00316.61
7.2.30.0070.01116.80
7.2.20.0070.00716.72
7.2.10.0180.00016.78
7.2.00.0090.01216.89
7.1.250.0140.00715.20
7.1.200.0040.00815.58
7.1.70.0070.00417.25
7.1.60.0060.00919.61
7.1.50.0190.01016.55
7.1.00.0000.07722.43
7.0.200.0030.00316.78
7.0.140.0000.07022.00
7.0.60.0130.06321.63
7.0.50.0100.08317.97
7.0.40.0030.07020.26
7.0.30.0400.06720.07
7.0.20.0200.03720.23
7.0.10.0070.09320.10
7.0.00.0070.05720.24
5.6.280.0070.07021.11
5.6.210.0130.07020.59
5.6.200.0030.04318.16
5.6.190.0030.08720.39
5.6.180.0000.05320.68
5.6.170.0170.04020.51
5.6.160.0070.09318.14
5.6.150.0100.06318.12
5.6.140.0100.07718.18
5.6.130.0100.05718.27
5.6.120.0100.08321.14
5.6.110.0070.09020.86
5.6.100.0100.08021.12
5.6.90.0030.09021.12
5.6.80.0030.08320.39
5.5.350.0170.03720.47
5.5.340.0070.06018.09
5.5.330.0070.07020.13
5.5.320.0600.03720.20
5.5.310.0270.08320.19
5.5.300.0030.05317.98
5.5.290.0070.06318.07
5.5.280.0000.07320.80
5.5.270.0170.07720.77
5.5.260.0100.06720.67
5.5.250.0100.08020.66
5.5.240.0130.04320.12
5.4.450.0330.04319.50
5.4.440.0330.04719.55
5.4.430.0370.04019.28
5.4.420.0400.03319.52
5.4.410.0330.03319.32
5.4.400.0370.03719.20
5.4.390.0370.03719.15
5.4.380.0330.04019.22
5.4.370.0470.05318.98
5.4.360.0430.06718.89
5.4.350.0430.05319.08
5.4.340.0530.03319.01
5.4.320.0470.07018.85
5.4.310.0370.03719.00
5.4.300.0370.03719.21
5.4.290.0330.03719.19
5.4.280.0370.03719.00
5.4.270.0400.04719.22
5.4.260.0330.04019.14
5.4.250.0300.04718.98
5.4.240.0400.03719.30
5.4.230.0400.03719.15
5.4.220.0370.04019.06
5.4.210.0430.06319.14
5.4.200.0370.03719.23
5.4.190.0430.04719.14
5.4.180.0530.06318.97
5.4.170.0300.04019.19
5.4.160.0330.04319.20
5.4.150.0400.03318.87
5.4.140.0300.03716.33
5.4.130.0430.03316.47
5.4.120.0370.04016.54
5.4.110.0300.04016.45
5.4.100.0400.03016.32
5.4.90.0370.03316.59
5.4.80.0270.04016.49
5.4.70.0330.03716.23
5.4.60.0300.04016.54
5.4.50.0400.03016.53
5.4.40.0400.05716.48
5.4.30.0370.03316.34
5.4.20.0330.04016.51
5.4.10.0330.03316.55
5.4.00.0370.04015.81
5.3.290.0300.04314.65
5.3.280.0330.03714.59
5.3.270.0300.04314.69
5.3.260.0330.03714.58
5.3.250.0330.04014.66
5.3.240.0400.03014.59
5.3.230.0330.04714.82
5.3.220.0330.04014.59
5.3.210.0370.04714.54
5.3.200.0430.05714.55
5.3.190.0430.06714.73
5.3.180.0470.06314.73
5.3.170.0370.03714.48
5.3.160.0330.04714.69
5.3.150.0570.02314.79
5.3.140.0500.02714.60
5.3.130.0330.07314.55
5.3.120.0330.04014.64
5.3.110.0430.03014.46
5.3.100.0300.04314.02
5.3.90.0400.03314.03
5.3.80.0430.03713.93
5.3.70.0400.04013.93
5.3.60.0330.03714.23
5.3.50.0400.04014.11
5.3.40.0370.03314.11
5.3.30.0330.03714.02
5.3.20.0330.03313.78
5.3.10.0300.03713.74
5.3.00.0300.04713.72
5.2.170.0300.03311.16
5.2.160.0330.04711.36
5.2.150.0300.02711.15
5.2.140.0270.04011.14
5.2.130.0270.03711.15
5.2.120.0330.02311.02
5.2.110.0300.02711.02
5.2.100.0270.03311.10
5.2.90.0330.03011.06
5.2.80.0300.02711.14
5.2.70.0200.04311.01
5.2.60.0300.02711.05
5.2.50.0370.04011.10
5.2.40.0230.03310.99
5.2.30.0270.03010.98
5.2.20.0270.02311.11
5.2.10.0200.03010.83
5.2.00.0300.02710.84
5.1.60.0300.0409.96
5.1.50.0270.0209.97
5.1.40.0300.04710.08
5.1.30.0270.02010.41
5.1.20.0200.02710.51
5.1.10.0330.03010.15
5.1.00.0270.0439.96
5.0.50.0130.0379.75
5.0.40.0170.0379.75
5.0.30.0230.0339.75
5.0.20.0130.0409.75
5.0.10.0130.0439.75
5.0.00.0130.0309.75
4.4.90.0070.0239.75
4.4.80.0270.0309.75
4.4.70.0130.0139.75
4.4.60.0100.0209.75
4.4.50.0100.0179.75
4.4.40.0130.0279.75
4.4.30.0130.0139.75
4.4.20.0100.0179.75
4.4.10.0100.0309.75
4.4.00.0100.0279.75
4.3.110.0170.0179.75
4.3.100.0100.0209.75
4.3.90.0170.0309.75
4.3.80.0130.0279.75
4.3.70.0170.0239.75
4.3.60.0200.0309.75
4.3.50.0170.0279.75
4.3.40.0100.0239.75
4.3.30.0030.0409.75
4.3.20.0070.0379.75
4.3.10.0100.0339.75
4.3.00.0130.0279.75

preferences:
70.14 ms | 400 KiB | 5 Q