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.0110.00716.50
8.3.50.0070.00716.29
8.3.40.0130.00318.84
8.3.30.0070.00718.75
8.3.20.0040.00419.01
8.3.10.0060.00323.66
8.3.00.0090.00019.66
8.2.180.0140.00716.63
8.2.170.0040.01122.96
8.2.160.0130.00020.39
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0040.00420.35
8.2.120.0000.00926.35
8.2.110.0090.00020.52
8.2.100.0110.00017.84
8.2.90.0000.00919.22
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00818.04
8.2.50.0090.00018.10
8.2.40.0030.00522.15
8.2.30.0000.00821.01
8.2.20.0000.01317.90
8.2.10.0000.00717.99
8.2.00.0000.00917.95
8.1.280.0110.00425.92
8.1.270.0020.00523.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00320.78
8.1.230.0030.00719.23
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00917.22
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0060.00318.58
8.1.160.0040.00418.95
8.1.150.0040.00420.67
8.1.140.0060.00319.39
8.1.130.0030.00318.77
8.1.120.0000.00717.28
8.1.110.0040.00417.29
8.1.100.0000.00717.24
8.1.90.0000.01017.41
8.1.80.0040.00317.35
8.1.70.0070.00017.34
8.1.60.0060.00317.53
8.1.50.0080.00017.44
8.1.40.0040.00417.30
8.1.30.0040.00417.62
8.1.20.0040.00417.54
8.1.10.0040.00417.50
8.1.00.0040.00417.31
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00518.27
8.0.270.0080.00017.17
8.0.260.0060.00016.82
8.0.250.0030.00316.96
8.0.240.0030.00316.92
8.0.230.0000.00716.98
8.0.220.0070.00016.75
8.0.210.0030.00316.80
8.0.200.0030.00316.84
8.0.190.0060.00316.87
8.0.180.0050.00216.91
8.0.170.0030.00316.89
8.0.160.0050.00316.89
8.0.150.0000.00716.85
8.0.140.0080.00016.74
8.0.130.0050.00013.25
8.0.120.0040.00416.89
8.0.110.0030.00316.76
8.0.100.0000.00716.73
8.0.90.0030.00516.86
8.0.80.0170.00316.96
8.0.70.0000.00816.76
8.0.60.0080.00016.77
8.0.50.0040.00416.79
8.0.30.0100.00817.14
8.0.20.0110.00717.40
8.0.10.0040.00416.88
8.0.00.0130.00316.66
7.4.330.0000.00515.55
7.4.320.0000.00716.51
7.4.300.0000.00616.34
7.4.290.0030.00516.48
7.4.280.0040.00416.53
7.4.270.0000.00816.44
7.4.260.0000.00813.04
7.4.250.0080.00016.55
7.4.240.0000.00716.42
7.4.230.0040.00416.47
7.4.220.0090.00916.49
7.4.210.0080.00616.45
7.4.200.0000.00716.30
7.4.160.0050.01016.44
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0100.01316.43
7.4.120.0120.01016.52
7.4.110.0160.00316.34
7.4.100.0110.00716.19
7.4.90.0070.01016.34
7.4.80.0150.00919.39
7.4.70.0140.00316.49
7.4.60.0060.01016.55
7.4.50.0060.01016.40
7.4.40.0090.00616.68
7.4.30.0140.00316.32
7.4.00.0050.01214.75
7.3.330.0080.00013.21
7.3.320.0050.00013.18
7.3.310.0050.00316.33
7.3.300.0000.00716.22
7.3.290.0000.00716.11
7.3.280.0080.00816.20
7.3.270.0130.00417.40
7.3.260.0120.00516.42
7.3.250.0080.01016.37
7.3.240.0080.01116.30
7.3.230.0060.01116.39
7.3.210.0110.00616.20
7.3.200.0060.01016.30
7.3.190.0120.00316.18
7.3.180.0060.01116.53
7.3.170.0060.01016.34
7.3.160.0150.00316.21
7.3.120.0150.00314.65
7.3.110.0070.01114.88
7.3.100.0040.01514.58
7.3.90.0030.01014.59
7.3.80.0040.00714.70
7.3.70.0100.00314.43
7.3.60.0070.00714.42
7.3.50.0030.00714.73
7.3.40.0140.00014.68
7.3.30.0000.00914.46
7.3.20.0000.01216.63
7.3.10.0040.01116.45
7.3.00.0040.01116.25
7.2.330.0120.00416.49
7.2.320.0100.00616.52
7.2.310.0030.01316.45
7.2.300.0060.00916.75
7.2.290.0170.00716.43
7.2.250.0030.01414.83
7.2.240.0120.00614.92
7.2.230.0070.00714.58
7.2.220.0070.01014.82
7.2.210.0050.00814.93
7.2.200.0030.00914.77
7.2.190.0030.01114.61
7.2.180.0090.00614.71
7.2.170.0030.00914.88
7.2.160.0110.00014.57
7.2.150.0060.00916.49
7.2.140.0000.01416.54
7.2.130.0070.00716.99
7.2.120.0090.00616.39
7.2.110.0030.00616.53
7.2.100.0070.00716.71
7.2.90.0120.00815.54
7.2.80.0240.00615.57
7.2.70.0040.01116.01
7.2.60.0120.00515.58
7.2.50.0150.00615.79
7.2.40.0060.01015.63
7.2.30.0800.01015.84
7.2.20.0470.00915.63
7.2.10.0950.00215.81
7.2.00.0900.00515.90
7.1.330.0070.01015.77
7.1.320.0060.00615.51
7.1.310.0040.00915.58
7.1.300.0090.00315.52
7.1.290.0120.00315.63
7.1.280.0000.00815.71
7.1.270.0060.00615.15
7.1.260.0060.00615.55
7.1.250.0070.00315.59
7.1.240.0000.01015.56
7.1.230.0030.00515.43
7.1.220.0030.00715.65
7.1.210.0490.00914.58
7.1.200.0120.01014.71
7.1.190.0600.00714.63
7.1.180.0040.01014.76
7.1.170.0360.00714.65
7.1.160.1010.00614.59
7.1.150.0820.00814.59
7.1.140.1520.01114.70
7.1.130.0660.00514.73
7.1.120.0600.00814.67
7.1.110.0060.00614.54
7.1.100.0090.00714.53
7.1.90.0100.00714.81
7.1.80.0080.00714.61
7.1.70.1200.00714.82
7.1.60.0310.00623.72
7.1.50.0130.01123.56
7.1.40.0210.00523.70
7.1.30.0370.00523.61
7.1.20.0530.01023.54
7.1.10.0540.00514.63
7.1.00.0500.01014.66
7.0.330.0030.00714.77
7.0.320.0030.00614.80
7.0.310.0110.00914.26
7.0.300.0100.00614.10
7.0.290.0620.00514.05
7.0.280.1110.00014.19
7.0.270.0880.00514.14
7.0.260.0450.00614.21
7.0.250.0410.00714.40
7.0.240.0170.00614.31
7.0.230.1020.00514.14
7.0.220.0210.00414.02
7.0.210.0100.00514.15
7.0.200.0070.01014.24
7.0.190.0170.00714.04
7.0.180.0570.00414.03
7.0.170.0050.00814.14
7.0.160.0060.00614.22
7.0.150.0590.00714.35
7.0.140.0450.00614.17
7.0.130.0720.00714.37
7.0.120.0590.00714.17
7.0.110.0510.00614.33
7.0.100.0630.00614.16
7.0.90.0570.00814.11
7.0.80.0520.01014.29
7.0.70.0460.00814.14
7.0.60.0560.01014.16
7.0.50.0690.00314.42
7.0.40.0700.00613.35
7.0.30.0570.00713.31
7.0.20.0480.01013.29
7.0.10.0530.00913.45
7.0.00.0440.00913.45
5.6.400.0030.01014.16
5.6.390.0070.00713.85
5.6.380.0040.01113.91
5.6.370.0040.00413.84
5.6.360.0120.00313.93
5.6.350.0060.00914.13
5.6.340.0070.00313.86
5.6.330.0000.01113.81
5.6.320.0000.01314.07
5.6.310.0000.00914.25
5.6.300.0120.00614.19
5.6.290.0060.01214.02
5.6.280.0120.00814.10
5.6.270.0080.00513.96
5.6.260.0060.00913.88
5.6.250.0030.01014.13
5.6.240.0110.00414.12
5.6.230.0000.01413.82
5.6.220.0090.00614.08
5.6.210.0000.01313.97
5.6.200.0060.00314.18
5.6.190.0070.00713.93
5.6.180.0090.00613.83
5.6.170.0090.00613.73
5.6.160.0120.00614.28
5.6.150.0080.00813.90
5.6.140.0100.00713.90
5.6.130.0090.00614.24
5.6.120.0070.00313.88
5.6.110.0090.00614.10
5.6.100.0000.01513.84
5.6.90.0110.00413.82
5.6.80.0120.00614.10
5.6.70.0040.01214.39
5.6.60.0030.01514.05
5.6.50.0030.01013.89
5.6.40.0040.01114.04
5.6.30.0100.00313.89
5.6.20.0060.00613.75
5.6.10.0040.01113.81
5.6.00.0050.00513.90

preferences:
49.55 ms | 401 KiB | 5 Q