3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Foo as Bar; use const meh as DEH; define('meh', 10, true); class Foo { function __construct() { echo 1; } } echo MEH;

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.01016.75
8.3.50.0030.01016.39
8.3.40.0070.00718.61
8.3.30.0070.00718.70
8.3.20.0080.00019.20
8.3.10.0040.00423.71
8.3.00.0000.00819.48
8.2.180.0110.01116.75
8.2.170.0070.00722.96
8.2.160.0130.00320.47
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0000.00720.56
8.2.120.0040.00426.35
8.2.110.0080.00320.57
8.2.100.0060.00617.97
8.2.90.0000.00919.26
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0040.00418.03
8.2.50.0040.00418.10
8.2.40.0000.00822.15
8.2.30.0040.00420.96
8.2.20.0070.00717.94
8.2.10.0000.00718.00
8.2.00.0000.00718.16
8.1.280.0110.00625.92
8.1.270.0050.00223.79
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00620.90
8.1.230.0000.01219.16
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0100.00017.35
8.1.190.0000.00816.98
8.1.180.0080.00018.10
8.1.170.0080.00418.34
8.1.160.0000.00718.82
8.1.150.0040.00420.48
8.1.140.0030.00619.38
8.1.130.0000.00818.82
8.1.120.0050.00317.44
8.1.110.0040.00417.41
8.1.100.0030.00517.32
8.1.90.0000.01017.33
8.1.80.0000.00717.29
8.1.70.0030.00317.39
8.1.60.0060.00317.54
8.1.50.0040.00417.45
8.1.40.0040.00417.36
8.1.30.0050.00317.45
8.1.20.0000.00817.60
8.1.10.0030.00617.41
8.1.00.0000.00717.45
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0040.00417.27
8.0.260.0060.00016.80
8.0.250.0030.00317.04
8.0.240.0000.00716.92
8.0.230.0030.00516.86
8.0.220.0040.00416.98
8.0.210.0070.00016.89
8.0.200.0030.00316.98
8.0.190.0030.00516.96
8.0.180.0000.00716.94
8.0.170.0040.00417.00
8.0.160.0050.00316.93
8.0.150.0040.00416.92
8.0.140.0060.00316.87
8.0.130.0060.00013.39
8.0.120.0040.00416.99
8.0.110.0000.00716.95
8.0.100.0040.00417.00
8.0.90.0040.00416.98
8.0.80.0130.00316.92
8.0.70.0040.00416.91
8.0.60.0050.00216.99
8.0.50.0000.00716.85
8.0.30.0090.00817.13
8.0.20.0070.01117.40
8.0.10.0040.00317.04
8.0.00.0090.00916.72
7.4.330.0030.00315.55
7.4.320.0040.00416.45
7.4.300.0040.00416.50
7.4.290.0000.00716.51
7.4.280.0000.00716.41
7.4.270.0000.00716.44
7.4.260.0030.00313.22
7.4.250.0050.00316.55
7.4.240.0000.00716.55
7.4.230.0030.00316.55
7.4.220.0060.01216.51
7.4.210.0100.00816.49
7.4.200.0000.00916.37
7.4.160.0100.00516.65
7.4.150.0090.00917.40
7.4.140.0110.01017.86
7.4.130.0120.00616.27
7.4.120.0110.00816.48
7.4.110.0120.01016.36
7.4.100.0150.00616.34
7.4.90.0040.01216.41
7.4.80.0060.01019.39
7.4.70.0100.00616.43
7.4.60.0060.01016.42
7.4.50.0030.01016.41
7.4.40.0040.01316.46
7.4.30.0030.01316.51
7.4.00.0040.01214.75
7.3.330.0030.00613.23
7.3.320.0000.00513.01
7.3.310.0000.00816.14
7.3.300.0040.00416.25
7.3.290.0000.00716.18
7.3.280.0050.01116.21
7.3.270.0090.00617.40
7.3.260.0080.00916.43
7.3.250.0100.00916.39
7.3.240.0080.01116.29
7.3.230.0100.01016.31
7.3.210.0090.00616.55
7.3.200.0090.00916.25
7.3.190.0170.00016.39
7.3.180.0060.01016.34
7.3.170.0040.01216.37
7.3.160.0100.00716.59
7.3.120.0100.00714.82
7.3.110.0070.01014.87
7.3.100.0070.00714.62
7.3.90.0110.00414.93
7.3.80.0070.00714.86
7.3.70.0060.00614.63
7.3.60.0040.01214.59
7.3.50.0000.01414.90
7.3.40.0000.01214.81
7.3.30.0050.00514.84
7.3.20.0030.01016.68
7.3.10.0060.00616.47
7.3.00.0050.00916.64
7.2.330.0070.01116.36
7.2.320.0100.00716.61
7.2.310.0060.01016.33
7.2.300.0000.01616.39
7.2.290.0080.01116.42
7.2.240.0090.00614.72
7.2.230.0110.00314.64
7.2.220.0040.01115.07
7.2.210.0000.01414.61
7.2.200.0060.00614.57
7.2.190.0070.00714.69
7.2.180.0030.00714.93
7.2.170.0070.00714.63
7.2.160.0090.00615.00
7.2.150.0030.01316.63
7.2.140.0000.00916.84
7.2.130.0070.00516.91
7.2.120.0050.00816.85
7.2.110.0030.01316.65
7.2.100.0050.01016.81
7.2.90.0050.01116.06
7.2.80.0060.00916.21
7.2.70.0090.00716.16
7.2.60.0050.01016.27
7.2.50.0080.00916.21
7.2.40.0500.00516.21
7.2.30.0080.00816.11
7.2.20.0190.00416.04
7.2.10.0320.00716.06
7.2.00.0040.00916.17
7.1.330.0020.01315.50
7.1.320.0040.00715.95
7.1.310.0000.01215.92
7.1.300.0040.01115.65
7.1.290.0030.00515.67
7.1.280.0040.00415.60
7.1.270.0070.00415.69
7.1.260.0100.00315.89
7.1.250.0050.00815.83
7.1.210.0140.00513.61
7.1.200.1830.01013.93
7.1.190.0180.01414.00
7.1.180.1130.00613.95
7.1.170.1590.00013.93
7.1.160.1840.00613.91
7.1.150.0060.00613.73
7.1.140.0090.00613.94
7.1.130.0140.00713.68
7.1.120.0110.00713.83
7.1.110.0150.00613.90
7.1.100.0180.00413.92
7.1.90.1300.00313.66
7.1.80.1030.00313.83
7.1.70.1470.00713.92
7.1.60.1590.01031.63
7.1.50.1510.00731.80
7.1.40.0390.01031.98
7.1.30.0400.00931.95
7.1.20.0310.00931.64
7.1.10.0690.00713.99
7.1.00.1410.00713.77
7.0.310.1240.01313.21
7.0.300.1460.00013.34
7.0.290.1090.00612.93
7.0.280.1030.00313.55
7.0.270.0070.01113.33
7.0.260.0290.00912.98
7.0.250.0140.00813.50
7.0.240.0080.01113.40
7.0.230.1000.00613.33
7.0.220.0980.00313.03
7.0.210.0710.00713.26
7.0.200.0180.01413.30
7.0.190.0080.01213.24
7.0.180.1280.01013.30
7.0.170.0340.00713.39
7.0.160.0220.00312.88
7.0.150.1960.00613.45
7.0.140.1410.00713.03
7.0.130.0120.00613.27
7.0.120.0030.01213.46
7.0.110.1030.00613.41
7.0.100.1000.00013.16
7.0.90.0140.00013.28
7.0.80.1160.00013.41
7.0.70.1400.00612.99
7.0.60.1060.00013.30
7.0.50.0990.01213.40
7.0.40.1390.01013.06
7.0.30.1350.00313.28
7.0.20.1370.00313.34
7.0.10.1310.00613.51
7.0.00.1360.00713.27

preferences:
41.68 ms | 400 KiB | 5 Q