3v4l.org

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

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.0170.00016.63
8.3.50.0100.00316.47
8.3.40.0120.00318.79
8.3.30.0070.00718.67
8.3.20.0080.00019.11
8.3.10.0080.00021.95
8.3.00.0060.00319.54
8.2.180.0140.01018.41
8.2.170.0070.00718.96
8.2.160.0030.01022.96
8.2.150.0040.01125.66
8.2.140.0040.00424.66
8.2.130.0070.00020.52
8.2.120.0040.00426.35
8.2.110.0000.01020.99
8.2.100.0040.00817.91
8.2.90.0080.00019.28
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0030.00522.35
8.2.30.0030.00521.04
8.2.20.0070.00418.13
8.2.10.0040.00418.02
8.2.00.0000.00718.01
8.1.280.0150.00625.92
8.1.270.0080.00023.80
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0030.00621.35
8.1.230.0040.00717.52
8.1.220.0000.00817.77
8.1.210.0030.00618.77
8.1.200.0040.00417.23
8.1.190.0080.00017.10
8.1.180.0050.00318.10
8.1.170.0080.00018.74
8.1.160.0000.00718.89
8.1.150.0000.00820.48
8.1.140.0000.00919.43
8.1.130.0040.00418.82
8.1.120.0000.00717.41
8.1.110.0040.00417.42
8.1.100.0040.00417.46
8.1.90.0070.00317.29
8.1.80.0040.00417.46
8.1.70.0030.00517.41
8.1.60.0080.00017.51
8.1.50.0000.00717.36
8.1.40.0040.00417.50
8.1.30.0080.00017.62
8.1.20.0030.00517.55
8.1.10.0040.00417.56
8.1.00.0070.00017.44
8.0.300.0060.00318.77
8.0.290.0070.00016.75
8.0.280.0000.00718.45
8.0.270.0040.00417.32
8.0.260.0000.00716.89
8.0.250.0000.00716.93
8.0.240.0040.00417.08
8.0.230.0030.00317.04
8.0.220.0080.00016.88
8.0.210.0030.00516.90
8.0.200.0060.00017.02
8.0.190.0000.00817.01
8.0.180.0040.00416.96
8.0.170.0050.00316.91
8.0.160.0000.00716.94
8.0.150.0050.00316.90
8.0.140.0080.00416.85
8.0.130.0000.00513.35
8.0.120.0040.00416.93
8.0.110.0030.00316.85
8.0.100.0040.00416.98
8.0.90.0000.00816.96
8.0.80.0100.00716.91
8.0.70.0040.00416.77
8.0.60.0070.00016.94
8.0.50.0040.00416.78
8.0.30.0110.00617.12
8.0.20.0090.01217.40
8.0.10.0040.00417.13
8.0.00.0120.00616.64
7.4.330.0000.00615.55
7.4.320.0040.00416.57
7.4.300.0060.00316.45
7.4.290.0000.00716.54
7.4.280.0000.00816.52
7.4.270.0070.00016.58
7.4.260.0000.00613.21
7.4.250.0070.00016.51
7.4.240.0070.00016.51
7.4.230.0040.00416.61
7.4.220.0100.01016.40
7.4.210.0050.01116.51
7.4.200.0070.00016.61
7.4.160.0060.01216.42
7.4.150.0140.02017.40
7.4.140.0060.01617.86
7.4.130.0180.00616.49
7.4.120.0150.00416.49
7.4.110.0090.00916.38
7.4.100.0070.01516.35
7.4.90.0070.01016.38
7.4.80.0130.00319.39
7.4.70.0110.00616.61
7.4.60.0090.00616.45
7.4.50.0120.00316.22
7.4.40.0070.01016.55
7.4.30.0100.00616.49
7.4.00.0000.01414.99
7.3.330.0000.00813.23
7.3.320.0030.00313.05
7.3.310.0030.00316.22
7.3.300.0070.00016.24
7.3.290.0000.00616.04
7.3.280.0080.00816.22
7.3.270.0060.01217.40
7.3.260.0140.00316.48
7.3.250.0130.00716.18
7.3.240.0120.00416.28
7.3.230.0100.00616.27
7.3.210.0190.00016.21
7.3.200.0080.00816.45
7.3.190.0150.00716.45
7.3.180.0090.00616.16
7.3.170.0210.00016.26
7.3.160.0150.00616.32
7.3.120.0070.01014.59
7.3.110.0030.01214.71
7.3.100.0040.01114.76
7.3.90.0080.00414.55
7.3.80.0040.01114.58
7.3.70.0070.01014.68
7.3.60.0030.01314.62
7.3.50.0030.01214.66
7.3.40.0000.01414.80
7.3.30.0000.01114.59
7.3.20.0080.00816.40
7.3.10.0090.00316.59
7.3.00.0030.00916.72
7.2.330.0100.01016.55
7.2.320.0110.00616.33
7.2.310.0120.00416.66
7.2.300.0070.01016.49
7.2.290.0100.01316.35
7.2.240.0090.00614.86
7.2.230.0030.01014.77
7.2.220.0150.00015.13
7.2.210.0040.01414.97
7.2.200.0030.00614.81
7.2.190.0040.01214.64
7.2.180.0000.01414.69
7.2.170.0130.00015.00
7.2.160.0100.00314.43
7.2.150.0060.00917.00
7.2.140.0000.00916.34
7.2.130.0090.00616.90
7.2.120.0030.01016.83
7.2.110.0080.00416.69
7.2.100.0120.00016.89
7.2.90.0380.00415.76
7.2.80.0090.00615.69
7.2.70.0100.00715.82
7.2.60.0140.00915.82
7.2.50.0070.01015.90
7.2.40.0190.00915.75
7.2.30.0070.00815.90
7.2.20.0170.00815.86
7.2.10.0080.00715.75
7.2.00.0490.00515.75
7.1.330.0000.01115.50
7.1.320.0090.00615.53
7.1.310.0030.00715.73
7.1.300.0100.00015.47
7.1.290.0040.00415.41
7.1.280.0120.00015.72
7.1.270.0000.01215.68
7.1.260.0070.01015.52
7.1.250.0100.00715.63
7.1.210.0060.01213.70
7.1.200.0130.00813.61
7.1.190.0510.00613.62
7.1.180.1370.00313.81
7.1.170.0370.00313.65
7.1.160.0110.00813.71
7.1.150.0130.00313.48
7.1.140.0090.00813.61
7.1.130.0100.00313.57
7.1.120.0830.01013.64
7.1.110.0910.01313.71
7.1.100.1330.00713.73
7.1.90.1600.01013.71
7.1.80.0370.00313.77
7.1.70.1120.00713.82
7.1.60.1190.01331.54
7.1.50.0990.01331.79
7.1.40.0320.00931.80
7.1.30.0190.01232.03
7.1.20.1130.01331.64
7.1.10.0810.00313.85
7.1.00.0110.00713.56
7.0.310.0850.01013.37
7.0.300.0050.01113.20
7.0.290.1270.01213.23
7.0.280.0110.00313.39
7.0.270.1080.00913.38
7.0.260.0870.01013.18
7.0.250.1220.00313.33
7.0.240.0980.01013.06
7.0.230.1070.01013.43
7.0.220.0070.01013.39
7.0.210.0990.00613.20
7.0.200.1170.00613.23
7.0.190.0090.00613.43
7.0.180.0580.00913.42
7.0.170.0080.00413.18
7.0.160.1730.00713.29
7.0.150.0600.00013.40
7.0.140.1010.00313.11
7.0.130.1200.01013.21
7.0.120.0050.01013.18
7.0.110.0110.00413.41
7.0.100.0060.01213.45
7.0.90.0070.01013.16
7.0.80.0170.00713.17
7.0.70.0060.00613.29
7.0.60.0030.01213.55
7.0.50.1890.01013.47
7.0.40.2410.01013.29
7.0.30.1970.00313.29
7.0.20.1820.00613.71
7.0.10.1600.00313.16
7.0.00.1250.00713.26

preferences:
50.64 ms | 401 KiB | 5 Q