3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooBar { public static function baz() { function isGlobalFunction() { echo 'yep'; } return true; } } FooBar::baz(); var_dump(function_exists('isGlobalFunction')); isGlobalFunction();

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.4.20.0120.01219.27
8.4.10.0130.00617.57
8.3.150.0180.00016.49
8.3.140.0080.00016.98
8.3.130.0090.00018.29
8.3.120.0150.00020.76
8.3.110.0030.01320.94
8.3.100.0100.00016.62
8.3.90.0070.01026.77
8.3.80.0040.00419.36
8.3.70.0060.00918.31
8.3.60.0090.00918.39
8.3.50.0100.00418.17
8.3.40.0080.00818.59
8.3.30.0120.00318.77
8.3.20.0020.00521.73
8.3.10.0070.00023.70
8.3.00.0000.00821.91
8.2.270.0030.01516.36
8.2.260.0070.01016.56
8.2.250.0110.00016.45
8.2.240.0070.00717.11
8.2.230.0000.00822.58
8.2.220.0040.00424.06
8.2.210.0000.00826.77
8.2.200.0040.00418.88
8.2.190.0070.00718.31
8.2.180.0070.00716.32
8.2.170.0140.01022.96
8.2.160.0200.00020.31
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00419.39
8.2.120.0040.00426.35
8.2.110.0030.00620.29
8.2.100.0000.01217.78
8.2.90.0060.00317.84
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0000.00917.91
8.2.50.0060.00318.10
8.2.40.0040.00420.65
8.2.30.0040.00419.18
8.2.20.0000.00717.86
8.2.10.0000.00717.88
8.2.00.0040.00418.18
8.1.310.0050.00316.09
8.1.300.0000.01018.55
8.1.290.0040.00430.84
8.1.280.0150.00425.92
8.1.270.0030.00522.19
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00322.53
8.1.230.0070.00422.80
8.1.220.0090.00017.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0030.00617.23
8.1.180.0000.00718.10
8.1.170.0040.00418.46
8.1.160.0000.00818.82
8.1.150.0030.00318.80
8.1.140.0000.00719.02
8.1.130.0030.00318.93
8.1.120.0000.01017.36
8.1.110.0070.00317.40
8.1.100.0000.00717.39
8.1.90.0050.00317.43
8.1.80.0040.00417.41
8.1.70.0050.00317.41
8.1.60.0040.00417.45
8.1.50.0000.00817.40
8.1.40.0000.00717.42
8.1.30.0000.00817.59
8.1.20.0040.00417.47
8.1.10.0040.00417.37
8.1.00.0000.00817.43
8.0.300.0030.00619.97
8.0.290.0040.00416.75
8.0.280.0000.00718.43
8.0.270.0070.00017.13
8.0.260.0040.00416.83
8.0.250.0000.01016.95
8.0.240.0030.00516.91
8.0.230.0000.00716.88
8.0.220.0050.00316.83
8.0.210.0050.00216.88
8.0.200.0050.00316.86
8.0.190.0030.00616.98
8.0.180.0000.00816.96
8.0.170.0040.00416.83
8.0.160.0030.00316.78
8.0.150.0000.00816.74
8.0.140.0040.00416.81
8.0.130.0030.00313.21
8.0.120.0000.00716.78
8.0.110.0040.00416.82
8.0.100.0040.00416.64
8.0.90.0080.00016.71
8.0.80.0060.00916.86
8.0.70.0040.00416.82
8.0.60.0040.00416.79
8.0.50.0000.00816.61
8.0.30.0120.00717.10
8.0.20.0120.00817.40
8.0.10.0040.00317.01
8.0.00.0100.00716.88
7.4.330.0020.00215.55
7.4.320.0060.00016.58
7.4.300.0070.00016.45
7.4.290.0070.00016.42
7.4.280.0040.00416.34
7.4.270.0070.00016.52
7.4.260.0080.00016.43
7.4.250.0050.00316.42
7.4.240.0020.00516.52
7.4.230.0000.00916.63
7.4.220.0030.00616.33
7.4.210.0060.01116.46
7.4.200.0070.00016.55
7.4.160.0090.00616.53
7.4.150.0100.01017.40
7.4.140.0110.00717.86
7.4.130.0140.00716.31
7.4.120.0120.00916.47
7.4.110.0090.00916.33
7.4.100.0130.00316.52
7.4.90.0070.01016.43
7.4.80.0130.00319.39
7.4.70.0060.01516.69
7.4.60.0080.00816.59
7.4.50.0080.01116.27
7.4.40.0100.00716.31
7.4.00.0110.00715.02
7.3.330.0060.00013.27
7.3.320.0030.00313.29
7.3.310.0020.00516.10
7.3.300.0070.00016.16
7.3.290.0000.00716.26
7.3.280.0050.00916.26
7.3.270.0120.00617.40
7.3.260.0080.00816.32
7.3.250.0100.01016.49
7.3.240.0100.00916.34
7.3.230.0100.00716.56
7.3.210.0060.01316.48
7.3.200.0100.00616.20
7.3.190.0160.00016.26
7.3.180.0120.00616.27
7.3.170.0070.01416.54
7.3.160.0100.00616.48
7.2.330.0090.00916.60
7.2.320.0110.00616.58
7.2.310.0100.00716.37
7.2.300.0040.01616.22
7.2.290.0080.00816.51
7.2.60.0100.00316.84
7.2.00.0180.01217.71
7.1.200.0060.00615.71
7.1.120.0320.01016.75
7.1.110.0300.00615.95
7.1.100.0210.01116.04
7.1.90.0230.01015.86
7.1.80.0350.01016.16
7.1.70.0340.00614.97
7.1.60.0280.01433.22
7.1.50.0400.02232.93
7.1.40.0510.01532.67
7.1.30.0300.01332.61
7.1.20.0410.00632.81
7.1.10.0340.00314.55
7.1.00.0160.00914.91
7.0.260.0310.01016.35
7.0.250.0170.01215.78
7.0.240.0460.01015.89
7.0.230.0230.00615.57
7.0.220.0060.01016.00
7.0.210.0100.00614.61
7.0.200.0620.01014.57
7.0.190.0270.00714.56
7.0.180.0260.00314.54
7.0.170.0240.00614.40
7.0.160.0210.00914.42
7.0.150.0180.00714.42
7.0.140.0290.00714.60
7.0.130.0180.00914.50
7.0.120.0200.00714.36
7.0.110.0140.01114.35
7.0.100.0120.01214.37
7.0.90.0290.00314.17
7.0.80.0270.01414.21
7.0.70.0190.01314.44
7.0.60.0030.01014.11
7.0.50.0140.01414.48
7.0.40.0210.00714.73
7.0.30.0340.01714.44
7.0.20.0340.01014.45
7.0.10.0410.00614.66
7.0.00.0220.01214.71
5.6.300.0200.04620.74
5.6.290.0100.06220.70
5.6.280.0170.06020.95
5.6.270.0100.05820.78
5.6.260.0170.07320.96
5.6.250.0180.05020.87
5.6.240.0140.05520.95
5.6.230.0170.05720.82
5.6.220.0100.05920.68
5.6.210.0160.05420.87
5.6.200.0180.05220.95
5.6.190.0070.06220.99
5.6.180.0140.06620.99
5.6.170.0070.06220.76
5.6.160.0210.05220.91
5.6.150.0100.07020.76
5.6.140.0130.07020.95
5.6.130.0160.04920.83
5.6.120.0000.07320.92
5.6.110.0130.05620.88
5.6.100.0060.06420.71
5.6.90.0170.04820.71
5.6.80.0130.05620.16
5.6.70.0130.04920.34
5.6.60.0200.05320.12
5.6.50.0070.05720.28
5.6.40.0130.05020.19
5.6.30.0030.06220.30
5.6.20.0110.05420.34
5.6.10.0160.04820.12
5.6.00.0100.05920.16
5.5.380.0140.07417.63
5.5.370.0150.05517.49
5.5.360.0130.05517.41
5.5.350.0060.05817.46
5.5.340.0120.06318.03
5.5.330.0070.06618.03
5.5.320.0000.06518.06
5.5.310.0320.06118.02
5.5.300.0160.04917.99
5.5.290.0130.05617.71
5.5.280.0130.05817.78
5.5.270.0280.04718.02
5.5.260.0130.06718.11
5.5.250.0070.05817.59
5.5.240.0130.05217.16
5.5.230.0160.04617.41
5.5.220.0130.05017.40
5.5.210.0200.04717.08
5.5.200.0120.04917.35
5.5.190.0130.05017.38
5.5.180.0200.04617.38
5.5.160.0170.04717.41
5.5.150.0120.04717.29
5.5.140.0090.05117.39
5.5.130.0100.04717.48
5.5.120.0100.04817.38
5.5.110.0070.05517.38
5.5.100.0150.04617.03
5.5.90.0060.05417.31
5.5.80.0070.05217.28
5.5.70.0170.04717.02
5.5.60.0030.07517.28
5.5.50.0070.06517.37
5.5.40.0170.05917.30
5.5.30.0060.05517.27
5.5.20.0070.05617.23
5.5.10.0120.04717.18
5.5.00.0240.04117.02
5.4.450.0140.05819.31
5.4.440.0000.06619.24
5.4.430.0030.06519.23
5.4.420.0210.04219.42
5.4.410.0090.05419.21
5.4.400.0090.05319.06
5.4.390.0070.05919.02
5.4.380.0140.04919.03
5.4.370.0160.04319.14
5.4.360.0130.06219.07
5.4.350.0040.05819.04
5.4.340.0190.04719.00
5.4.320.0130.05019.07
5.4.310.0060.05219.10
5.4.300.0100.05019.05
5.4.290.0190.03919.07
5.4.280.0060.05419.14
5.4.270.0140.04419.13
5.4.260.0070.05419.02
5.4.250.0070.05219.02
5.4.240.0070.05719.23
5.4.230.0100.05319.01
5.4.220.0200.06219.00
5.4.210.0090.05119.00
5.4.200.0060.05419.22
5.4.190.0030.05819.13
5.4.180.0070.05219.01
5.4.170.0170.04419.25
5.4.160.0060.05518.89
5.4.150.0070.05518.99
5.4.140.0230.04116.46
5.4.130.0150.04416.43
5.4.120.0070.05116.67
5.4.110.0060.05216.70
5.4.100.0100.06016.68
5.4.90.0090.04616.68
5.4.80.0070.05116.68
5.4.70.0150.04816.58
5.4.60.0100.06316.35
5.4.50.0180.04616.40
5.4.40.0130.05716.66
5.4.30.0070.05016.54
5.4.20.0130.06416.38
5.4.10.0130.04716.39
5.4.00.0140.04115.84
5.3.290.0100.05214.92
5.3.280.0070.05814.89
5.3.270.0100.04914.91
5.3.260.0150.04614.66
5.3.250.0130.04814.87
5.3.240.0110.04914.82
5.3.230.0030.05514.65
5.3.220.0150.04614.77
5.3.210.0130.06514.82
5.3.200.0070.05214.47
5.3.190.0130.04514.75
5.3.180.0070.05314.83
5.3.170.0150.06214.70
5.3.160.0100.05014.73
5.3.150.0130.06414.80
5.3.140.0130.04614.67
5.3.130.0070.05514.60
5.3.120.0170.04714.81
5.3.110.0070.05414.74
5.3.100.0070.05214.16
5.3.90.0090.04813.89
5.3.80.0070.05114.19
5.3.70.0100.04714.31
5.3.60.0140.04613.99
5.3.50.0160.05614.26
5.3.40.0150.04314.18
5.3.30.0100.04413.96
5.3.20.0060.05013.98
5.3.10.0030.05313.85
5.3.00.0130.04513.86
5.2.170.0130.04311.35
5.2.160.0000.04611.20
5.2.150.0030.04411.03
5.2.140.0090.03811.02
5.2.130.0060.03911.32
5.2.120.0150.04311.28
5.2.110.0120.03711.39
5.2.100.0100.03611.32
5.2.90.0030.05811.14
5.2.80.0140.04310.97
5.2.70.0070.04111.26
5.2.60.0070.04011.26
5.2.50.0100.04311.29
5.2.40.0150.03611.05
5.2.30.0100.03611.14
5.2.20.0100.03411.09
5.2.10.0090.04211.05
5.2.00.0240.02810.77
5.1.60.0170.03610.22
5.1.50.0150.03310.22
5.1.40.0060.03710.18
5.1.30.0070.03510.60
5.1.20.0090.03410.53
5.1.10.0090.03310.39
5.1.00.0060.03610.16
5.0.50.0060.0289.23
5.0.40.0060.0259.23
5.0.30.0030.0449.23
5.0.20.0000.0309.23
5.0.10.0030.0289.23
5.0.00.0030.0419.23
4.4.90.0030.0239.23
4.4.80.0030.0239.23
4.4.70.0070.0189.23
4.4.60.0110.0159.23
4.4.50.0040.0219.23
4.4.40.0000.0379.23
4.4.30.0060.0209.23
4.4.20.0060.0199.23
4.4.10.0060.0259.23
4.4.00.0060.0319.23
4.3.110.0050.0219.23
4.3.100.0070.0179.23
4.3.90.0030.0209.23
4.3.80.0100.0359.23
4.3.70.0030.0239.23
4.3.60.0030.0219.23
4.3.50.0110.0209.23
4.3.40.0000.0459.23
4.3.30.0030.0279.23
4.3.20.0030.0219.23
4.3.10.0050.0219.23
4.3.00.0070.0179.23

preferences:
37.46 ms | 403 KiB | 5 Q