3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function afunction() { static $test=10; $test--; echo $test; self::afunction(); } } $testa = new a(); echo $testa->afunction();

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.0250.00617.50
8.3.50.0360.01619.12
8.3.40.0240.02020.60
8.3.30.0240.01420.24
8.3.20.0230.01920.49
8.3.10.0200.00322.43
8.3.00.0100.00719.38
8.2.180.0300.01018.50
8.2.170.0330.01022.96
8.2.160.0260.02223.33
8.2.150.0120.00624.18
8.2.140.0160.00624.66
8.2.130.0200.00326.16
8.2.120.0100.00721.00
8.2.110.0250.00422.94
8.2.100.0280.00319.53
8.2.90.0170.00721.26
8.2.80.0050.00818.75
8.2.70.0070.00718.75
8.2.60.0080.00819.68
8.2.50.0130.00719.75
8.2.40.0080.00419.09
8.2.30.0060.00619.24
8.2.20.0030.01019.14
8.2.10.0090.00318.78
8.2.00.0120.00018.75
8.1.280.0270.01025.92
8.1.270.0180.00424.66
8.1.260.0370.00326.35
8.1.250.0140.00428.09
8.1.240.0150.00421.43
8.1.230.0140.01018.70
8.1.220.0040.00918.66
8.1.210.0120.00318.86
8.1.200.0070.00718.73
8.1.190.0070.00718.60
8.1.180.0040.00818.13
8.1.170.0030.00920.01
8.1.160.0080.00420.07
8.1.150.0110.00420.18
8.1.140.0000.01419.05
8.1.130.0080.00318.87
8.1.120.0040.00718.63
8.1.110.0050.00618.72
8.1.100.0110.00018.64
8.1.90.0060.00618.61
8.1.80.0080.00418.52
8.1.70.0100.00318.67
8.1.60.0030.01018.78
8.1.50.0040.00818.63
8.1.40.0140.00719.78
8.1.30.0060.00919.01
8.1.20.0110.00018.80
8.1.10.0030.00918.81
8.1.00.0170.00819.64
8.0.300.0120.00018.77
8.0.290.0070.00417.63
8.0.280.0040.00719.50
8.0.270.0040.00718.32
8.0.260.0140.00017.87
8.0.250.0080.00417.93
8.0.240.0060.00917.70
8.0.230.0060.00617.96
8.0.220.0000.01117.82
8.0.210.0070.00718.07
8.0.200.0080.00418.53
8.0.190.0110.00418.04
8.0.180.0090.00318.05
8.0.170.0060.00918.56
8.0.160.0070.00718.10
8.0.150.0110.00318.73
8.0.140.0070.00717.95
8.0.130.0000.01014.48
8.0.120.0000.01117.91
8.0.110.0070.00717.88
8.0.100.0070.00717.95
8.0.90.0090.00318.15
8.0.80.0220.03118.20
8.0.70.0090.00318.05
8.0.60.0070.00718.17
8.0.50.0030.01018.10
8.0.30.0540.03718.82
8.0.20.0460.03418.78
8.0.10.0070.00718.19
8.0.00.0480.02718.37
7.4.330.0080.00314.01
7.4.320.0030.00917.57
7.4.300.0040.00717.45
7.4.290.0100.00317.71
7.4.280.0000.01418.07
7.4.270.0040.00817.59
7.4.260.0060.00614.76
7.4.250.0060.00917.45
7.4.240.0030.01017.67
7.4.230.0070.00717.70
7.4.220.0240.03417.70
7.4.210.0210.03017.98
7.4.200.0060.00617.79
7.4.190.0060.00617.64
7.4.160.0290.01817.59
7.4.150.0410.02217.88
7.4.140.0630.04718.53
7.4.130.0390.03918.20
7.4.120.0620.04318.61
7.4.110.0860.05518.72
7.4.100.0720.02518.45
7.4.90.0350.01917.62
7.4.80.0310.03818.32
7.4.70.0220.03117.99
7.4.60.0560.04818.56
7.4.50.1770.02118.33
7.4.40.0190.00617.57
7.4.30.0580.05018.52
7.3.330.0090.00415.17
7.3.320.0070.01115.46
7.3.310.0080.00317.45
7.3.300.0130.00318.02
7.3.290.0330.04618.37
7.3.280.0250.03317.67
7.3.270.0510.04418.73
7.3.260.0480.05118.31
7.3.250.0640.03518.60
7.3.240.0760.04718.59
7.3.230.0810.02018.42
7.3.210.0620.02618.35
7.3.200.0420.04719.39
7.3.190.0340.01717.82
7.3.180.0230.02017.73
7.3.170.0630.05318.47
7.3.160.0220.04718.28
7.2.330.0750.04018.94
7.2.320.0270.05518.87
7.2.310.0700.05818.94
7.2.300.0410.03818.77
7.2.290.0500.03418.97
7.2.100.1540.01315.21
7.2.90.1050.01416.19
7.2.80.0270.01615.71
7.2.70.0290.03216.12
7.2.60.0980.01415.47
7.2.50.2370.03316.80
7.2.40.2190.02216.15
7.2.30.0620.01415.81
7.2.20.0970.01216.37
7.2.10.1510.01115.91
7.2.00.1830.01916.02
7.1.220.2240.01615.16
7.1.210.1810.01015.23
7.1.200.2420.01015.58
7.1.190.2720.01315.23
7.1.180.0220.02015.16
7.1.170.1820.00715.35
7.1.160.1400.00314.80
7.1.150.1580.02215.48
7.1.140.0590.01314.67
7.1.130.1630.00915.23
7.1.120.1440.01715.39
7.1.110.1150.01214.59
7.1.100.1350.02315.71
7.1.90.2210.01015.70
7.1.80.1000.01315.05
7.1.70.0190.01414.61
7.1.60.0740.00432.90
7.1.50.0870.01832.92
7.1.40.1340.03433.46
7.1.30.0860.01832.94
7.1.20.0760.02133.05
7.1.10.1960.03015.73
7.1.00.1240.00915.01
7.0.310.0780.00915.90
7.0.300.1170.02915.82
7.0.290.1830.02214.75
7.0.280.1100.00614.75
7.0.270.1410.01414.79
7.0.260.0740.01314.92
7.0.250.1180.01315.02
7.0.240.1460.02015.10
7.0.230.1310.01415.82
7.0.220.0760.02215.20
7.0.210.0960.01215.64
7.0.200.1450.01715.45
7.0.190.0940.01716.62
7.0.180.1010.02415.13
7.0.170.1420.01715.07
7.0.160.1380.01014.95
7.0.150.1570.01214.67
7.0.140.1740.00614.90
7.0.130.0580.01915.32
7.0.120.1020.00815.18
7.0.110.0960.02316.63
7.0.100.1220.01614.91
7.0.90.1180.00715.11
7.0.80.1000.00714.88
7.0.70.1400.01115.24
7.0.60.1660.00714.93
7.0.50.1420.02916.39
7.0.40.0720.00614.93
7.0.30.1200.01014.67
7.0.20.0970.00914.48
7.0.10.0910.01614.90
7.0.00.1880.01016.61
5.6.380.0190.01516.29
5.6.370.0380.01918.98
5.6.360.0270.02718.00
5.6.350.0370.01016.15
5.6.340.0160.01916.74
5.6.330.0340.01617.27
5.6.320.0430.01417.86
5.6.310.0370.01917.32
5.6.300.0120.02917.22
5.6.290.0500.00918.01
5.6.280.0470.02518.61
5.6.270.0260.01717.29
5.6.260.0580.02119.49
5.6.250.0450.02819.33
5.6.240.0200.01817.11
5.6.230.0350.03519.40
5.6.220.0230.02016.48
5.6.210.0280.02817.55
5.6.200.0440.02619.25
5.6.190.0530.01519.11
5.6.180.0440.02419.70
5.6.170.0320.03319.47
5.6.160.0270.02818.01
5.6.150.0240.01217.16
5.6.140.0170.01416.48
5.5.380.0270.00313.22
5.5.370.0320.03215.91
5.5.360.0600.01516.61
5.5.350.0200.01713.32
5.5.340.0210.01012.92
5.5.330.0420.01514.31
5.5.320.0360.02916.63
5.5.310.0300.02816.07

preferences:
43.03 ms | 401 KiB | 5 Q