3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} class Bar extends Foo { public function __construct() { parent::__construct(); } } new Bar();

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.70.0090.01316.58
8.3.60.0070.00716.86
8.3.50.0100.00822.11
8.3.40.0110.00418.79
8.3.30.0070.01118.73
8.3.20.0000.00820.19
8.3.10.0100.00018.80
8.3.00.0030.00521.61
8.2.180.0170.00016.63
8.2.170.0100.01022.96
8.2.160.0070.00722.12
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0030.00520.75
8.2.120.0080.00026.35
8.2.110.0030.00620.91
8.2.100.0040.00817.93
8.2.90.0000.00719.17
8.2.80.0050.00317.97
8.2.70.0000.00917.63
8.2.60.0050.00317.91
8.2.50.0040.00418.09
8.2.40.0040.00422.14
8.2.30.0030.00319.44
8.2.20.0000.00817.55
8.2.10.0070.00017.86
8.2.00.0040.00418.09
8.1.280.0060.00925.92
8.1.270.0110.00722.04
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0040.00422.71
8.1.230.0100.00317.70
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.13
8.1.190.0000.00817.23
8.1.180.0000.00718.10
8.1.170.0040.00418.59
8.1.160.0040.00420.53
8.1.150.0040.00420.45
8.1.140.0050.00319.43
8.1.130.0070.00017.48
8.1.120.0040.00417.21
8.1.110.0040.00417.37
8.1.100.0030.00317.21
8.1.90.0040.00417.30
8.1.80.0040.00417.30
8.1.70.0030.00317.39
8.1.60.0030.00617.52
8.1.50.0060.00317.29
8.1.40.0000.00717.46
8.1.30.0030.00517.48
8.1.20.0020.00517.62
8.1.10.0000.00717.46
8.1.00.0050.00317.45
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0080.00018.37
8.0.270.0070.00017.18
8.0.260.0030.00317.14
8.0.250.0050.00316.95
8.0.240.0060.00016.93
8.0.230.0030.00316.93
8.0.220.0060.00316.76
8.0.210.0000.00716.89
8.0.200.0000.00616.93
8.0.190.0030.00316.88
8.0.180.0050.00216.91
8.0.170.0040.00416.94
8.0.160.0000.00816.87
8.0.150.0000.00716.86
8.0.140.0090.00016.70
8.0.130.0050.00013.25
8.0.120.0000.00816.86
8.0.110.0000.00716.84
8.0.100.0030.00316.85
8.0.90.0050.00316.90
8.0.80.0090.00616.86
8.0.70.0000.00716.97
8.0.60.0040.00416.71
8.0.50.0040.00416.86
8.0.30.0160.00217.06
8.0.20.0100.01217.40
8.0.10.0050.00316.95
8.0.00.0130.00816.64
7.4.330.0050.00016.79
7.4.320.0060.00016.43
7.4.300.0040.00416.32
7.4.290.0000.00816.56
7.4.280.0040.00416.52
7.4.270.0000.00716.53
7.4.260.0070.00016.36
7.4.250.0020.00516.25
7.4.240.0000.00716.43
7.4.230.0070.00016.62
7.4.220.0100.00716.39
7.4.210.0080.01016.40
7.4.200.0000.00716.55
7.4.160.0100.00716.47
7.4.150.0100.00717.40
7.4.140.0130.00717.86
7.4.130.0090.00916.51
7.4.120.0090.00816.40
7.4.110.0170.00016.50
7.4.100.0060.01016.43
7.4.90.0130.00316.38
7.4.80.0070.01119.39
7.4.70.0070.01016.33
7.4.60.0140.00316.59
7.4.50.0080.00716.64
7.4.40.0120.00316.54
7.4.30.0140.00716.42
7.4.00.0060.01214.72
7.3.330.0060.00013.21
7.3.320.0000.00613.28
7.3.310.0030.00316.41
7.3.300.0000.00716.40
7.3.290.0020.00516.45
7.3.280.0080.01116.35
7.3.270.0100.00717.40
7.3.260.0140.00316.26
7.3.250.0090.01016.37
7.3.240.0110.00616.45
7.3.230.0090.01016.39
7.3.210.0130.00316.56
7.3.200.0120.00319.39
7.3.190.0120.00416.33
7.3.180.0070.01216.43
7.3.170.0030.01316.48
7.3.160.0080.00816.55
7.3.120.0080.00814.65
7.3.110.0030.01114.85
7.3.100.0080.00514.93
7.3.90.0070.00814.66
7.3.80.0050.01014.64
7.3.70.0130.00314.85
7.3.60.0080.00414.81
7.3.50.0050.00814.65
7.3.40.0080.00514.57
7.3.30.0050.00814.88
7.3.20.0090.00616.57
7.3.10.0050.01116.56
7.3.00.0070.00516.54
7.2.330.0100.00716.61
7.2.320.0060.01016.47
7.2.310.0110.00916.29
7.2.300.0100.00716.58
7.2.290.0060.01016.35
7.2.240.0060.00814.94
7.2.230.0090.00715.07
7.2.220.0060.00714.81
7.2.210.0020.01214.73
7.2.200.0020.01214.89
7.2.190.0040.00914.58
7.2.180.0050.00814.83
7.2.170.0050.00714.83
7.2.160.0050.00814.87
7.2.150.0030.01016.69
7.2.140.0070.00716.86
7.2.130.0080.00716.71
7.2.120.0080.00616.58
7.2.110.0060.00816.77
7.2.100.0080.00616.71
7.2.90.0030.01316.80
7.2.80.0090.00616.71
7.2.70.0050.01016.73
7.2.60.0040.00816.71
7.2.50.0070.00716.80
7.2.40.0120.00316.82
7.2.30.0060.00816.76
7.2.20.0080.00816.67
7.2.10.0050.00616.79
7.2.00.0050.01017.67
7.1.330.0020.00815.55
7.1.320.0060.00715.54
7.1.310.0050.00915.64
7.1.300.0050.00915.36
7.1.290.0070.00415.66
7.1.280.0020.01015.66
7.1.270.0110.00515.47
7.1.260.0030.00915.38
7.1.250.0050.00515.52
7.1.200.0090.00315.36
7.1.100.0090.00618.13
7.1.70.0050.00216.72
7.1.60.0100.01619.40
7.1.50.0030.00716.76
7.1.00.0100.07022.41
7.0.200.0000.00816.74
7.0.60.0270.07719.93
7.0.50.0070.03717.87
7.0.40.0030.04720.18
7.0.30.1100.06020.07
7.0.20.0370.08020.10
7.0.10.0070.06020.23
7.0.00.0100.08020.23
5.6.280.0070.06720.78
5.6.210.0070.08320.75
5.6.200.0030.08318.16
5.6.190.0030.07720.77
5.6.180.0330.04720.39
5.6.170.0230.04020.45
5.6.160.0030.05720.48
5.6.150.0130.04018.16
5.6.140.0070.06718.18
5.6.130.0030.04018.28
5.6.120.0030.07721.12
5.6.110.0070.07321.04
5.6.100.0270.07321.03
5.6.90.0130.07721.10
5.6.80.0070.07320.38
5.5.350.0130.08320.44
5.5.340.0170.07018.09
5.5.330.0070.08320.28
5.5.320.0570.05320.51
5.5.310.0270.07720.28
5.5.300.0130.05717.95
5.5.290.0030.04317.97
5.5.280.0070.08720.98
5.5.270.0030.05020.79
5.5.260.0070.08320.64
5.5.250.0100.08020.68
5.5.240.0230.04720.07

preferences:
54.97 ms | 401 KiB | 5 Q