3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function doFoo() { function testFoo() { var_dump('test'); } testFoo(); } } $foo = new Foo(); $foo->doFoo(); testFoo();

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.0090.00918.16
8.3.50.0110.00418.15
8.3.40.0120.00318.64
8.3.30.0070.00718.63
8.3.20.0000.00721.78
8.3.10.0040.00420.39
8.3.00.0050.00219.12
8.2.180.0100.01020.22
8.2.170.0050.01022.96
8.2.160.0100.00320.39
8.2.150.0060.00924.18
8.2.140.0070.00024.66
8.2.130.0070.00022.21
8.2.120.0030.00626.35
8.2.110.0090.00020.94
8.2.100.0130.00917.60
8.2.90.0040.00418.16
8.2.80.0000.01017.97
8.2.70.0030.00618.04
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0000.00719.48
8.2.30.0040.00419.26
8.2.20.0030.00518.16
8.2.10.0040.00418.15
8.2.00.0050.00318.25
8.1.280.0130.00725.92
8.1.270.0080.00023.82
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0090.00022.24
8.1.230.0040.00722.75
8.1.220.0000.00817.78
8.1.210.0050.00318.77
8.1.200.0060.00617.35
8.1.190.0060.00317.23
8.1.180.0060.00318.10
8.1.170.0040.00418.54
8.1.160.0030.00718.89
8.1.150.0070.00018.88
8.1.140.0040.00419.45
8.1.130.0000.00719.02
8.1.120.0000.00717.35
8.1.110.0000.00717.43
8.1.100.0040.00417.51
8.1.90.0050.00217.29
8.1.80.0040.00417.43
8.1.70.0030.00317.50
8.1.60.0040.00417.62
8.1.50.0050.00317.38
8.1.40.0000.00717.57
8.1.30.0040.00417.71
8.1.20.0040.00417.63
8.1.10.0050.00217.41
8.1.00.0000.00717.30
8.0.300.0030.00619.52
8.0.290.0070.00458.47
8.0.280.0030.00318.32
8.0.270.0020.00517.26
8.0.260.0000.00717.27
8.0.250.0000.00616.96
8.0.240.0070.00016.84
8.0.230.0070.00016.95
8.0.220.0000.00716.91
8.0.210.0070.00016.88
8.0.200.0030.00316.78
8.0.190.0000.00716.92
8.0.180.0040.00416.87
8.0.170.0000.00716.81
8.0.160.0000.00916.89
8.0.150.0020.00516.72
8.0.140.0060.00316.84
8.0.130.0030.00313.27
8.0.120.0030.00516.86
8.0.110.0020.00516.91
8.0.100.0030.00316.72
8.0.90.0000.00816.69
8.0.80.0040.01116.92
8.0.70.0040.00416.86
8.0.60.0040.00416.85
8.0.50.0000.00716.85
8.0.30.0100.00816.96
8.0.20.0090.01017.40
8.0.10.0000.00917.07
8.0.00.0080.01316.69
7.4.330.0030.00358.07
7.4.320.0060.00016.63
7.4.300.0060.00016.51
7.4.290.0030.00616.54
7.4.280.0000.00816.46
7.4.270.0030.00316.57
7.4.260.0040.00516.61
7.4.250.0080.00016.56
7.4.240.0030.00316.63
7.4.230.0000.00716.68
7.4.220.0030.01316.62
7.4.210.0080.00716.40
7.4.200.0080.00016.70
7.4.160.0110.00516.49
7.4.150.0170.00017.40
7.4.140.0090.01217.86
7.4.130.0100.00816.40
7.4.120.0110.00916.36
7.4.110.0100.01216.47
7.4.100.0030.01516.43
7.4.90.0090.00916.48
7.4.80.0010.01717.86
7.4.70.0050.01216.28
7.4.60.0070.01216.37
7.4.50.0080.00816.43
7.4.40.0110.00916.27
7.4.30.0140.00416.42
7.4.20.0060.01216.51
7.4.10.0170.00716.70
7.4.00.0110.00515.70
7.3.330.0020.00213.30
7.3.320.0000.00613.07
7.3.310.0000.00716.33
7.3.300.0030.00316.31
7.3.290.0040.01016.27
7.3.280.0100.00816.28
7.3.270.0100.01017.40
7.3.260.0150.01116.34
7.3.250.0080.00916.38
7.3.240.0080.01016.38
7.3.230.0080.01416.33
7.3.220.0100.00716.30
7.3.210.0100.00916.50
7.3.200.0120.00816.40
7.3.190.0060.01216.40
7.3.180.0120.00716.44
7.3.170.0070.01116.38
7.3.160.0110.01016.19
7.3.150.0030.01316.43
7.3.140.0070.01016.33
7.3.130.0180.00016.27
7.3.120.0160.00716.50
7.3.110.0000.01616.50
7.3.100.0110.00616.11
7.3.90.0080.01216.34
7.3.80.0150.00916.13
7.3.70.0290.00916.36
7.3.60.0170.00716.32
7.3.50.0190.00616.25
7.3.40.0100.00716.38
7.3.30.0110.00716.27
7.3.20.0120.00616.27
7.3.10.0070.01016.22
7.3.00.0090.00916.25
7.2.340.0250.01116.32
7.2.330.0190.00916.48
7.2.320.0170.00816.48
7.2.310.0210.00616.60
7.2.300.0160.01216.24
7.2.290.0200.00916.32
7.2.280.0290.00316.59
7.2.270.0300.00716.44
7.2.260.0180.01516.60
7.2.250.0240.00816.75
7.2.240.0280.00516.74
7.2.230.0240.00916.71
7.2.220.0180.01816.60
7.2.210.0260.00716.54
7.2.200.0370.00716.58
7.2.190.0280.00816.47
7.2.180.0280.00816.39
7.2.170.0310.00316.47
7.2.160.0250.01016.41
7.2.150.0240.01016.43
7.2.140.0270.00716.45
7.2.130.0310.00316.56
7.2.120.0250.01216.58
7.2.110.0220.01116.67
7.2.100.0290.00316.63
7.2.90.0170.01516.56
7.2.80.0270.00516.32
7.2.70.0180.01416.67
7.2.60.0190.00616.74
7.2.50.0270.00616.51
7.2.40.0890.01017.28
7.2.30.0760.01017.24
7.2.20.0210.01217.37
7.2.10.1070.01217.07
7.2.00.0780.01517.24
7.1.330.0260.01015.44
7.1.320.0290.00515.40
7.1.310.0220.01115.52
7.1.300.0210.00915.66
7.1.290.0270.00315.47
7.1.280.0270.01115.42
7.1.270.0240.00915.29
7.1.260.0320.00015.45
7.1.250.0210.01115.52
7.1.240.0210.01015.61
7.1.230.0180.01215.51
7.1.220.0240.00615.37
7.1.210.0220.00615.44
7.1.200.0180.00315.62
7.1.190.0280.00715.45
7.1.180.0320.00715.24
7.1.170.0260.00915.39
7.1.160.0940.00616.04
7.1.150.0930.01215.98
7.1.140.0170.01116.07
7.1.130.0140.01216.15
7.1.120.0720.01016.01
7.1.110.0540.01315.74
7.1.100.0850.01015.89
7.1.90.0170.00915.72
7.1.80.0880.01115.68
7.1.70.0520.00615.96
7.1.60.0580.01321.88
7.1.50.0720.01624.05
7.1.40.0670.01323.96
7.1.30.0700.01323.96
7.1.20.0540.03229.50
7.1.10.0360.02617.34
7.1.00.0380.02617.50
7.0.330.0210.00915.16
7.0.320.0270.00315.18
7.0.310.0210.00515.12
7.0.300.0220.00915.07
7.0.290.0200.01315.75
7.0.280.0200.00914.98
7.0.270.0820.01115.77
7.0.260.0860.01415.71
7.0.250.0940.01015.55
7.0.240.0760.01215.46
7.0.230.0280.00915.57
7.0.220.1100.01015.54
7.0.210.0750.01114.98
7.0.200.0460.01215.38
7.0.190.0640.01014.89
7.0.180.0620.01114.80
7.0.170.0620.01014.85
7.0.160.0460.02417.05
7.0.150.0340.02717.21
7.0.140.0380.02517.15
7.0.130.0410.02617.23
7.0.120.0320.02617.26
7.0.110.0390.02217.06
7.0.100.0370.03317.14
7.0.90.0430.02617.16
7.0.80.0510.02617.15
7.0.70.0340.02617.25
7.0.60.0370.02517.10
7.0.50.1320.02617.16
7.0.40.0300.02617.25
7.0.30.0350.02417.13
7.0.20.0370.02517.17
7.0.10.0300.02317.05
7.0.00.0390.02217.17
5.6.400.0180.01816.04
5.6.390.0230.00915.82
5.6.380.0130.01816.16
5.6.370.0200.01315.87
5.6.360.0230.01316.00
5.6.350.0210.01516.05
5.6.340.0280.00616.08
5.6.330.0270.00416.04
5.6.320.0170.01315.85
5.6.310.0240.00615.97
5.6.300.0180.05019.15
5.6.290.0180.04419.23
5.6.280.0130.04919.15
5.6.270.0200.04519.15
5.6.260.0110.05419.16
5.6.250.0150.05119.17
5.6.240.0180.04719.23
5.6.230.0170.05019.24
5.6.220.0190.04819.18
5.6.210.0190.04419.13
5.6.200.0170.04919.10
5.6.190.0220.04819.15
5.6.180.0220.04519.20
5.6.170.0190.04319.17
5.6.160.0190.04719.11
5.6.150.0160.04819.08
5.6.140.0150.04819.04
5.6.130.0160.04519.24
5.6.120.0160.04419.22
5.6.110.0170.05119.11
5.6.100.0150.04819.21
5.6.90.0200.04519.06
5.6.80.0160.04618.71
5.6.70.0140.04818.72
5.6.60.0200.04818.71
5.6.50.0200.04118.69
5.6.40.0160.04718.66
5.6.30.0180.04718.65
5.6.20.0190.04518.64
5.6.10.0180.04418.74
5.6.00.0150.04418.66

preferences:
64.76 ms | 401 KiB | 5 Q