3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public $value = 0; function test() { $this->value = 1; } function __construct() { $this->value = 2; } } $object = new test(); echo $object->value;

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.00616.63
8.3.60.0100.01016.63
8.3.50.0100.01116.61
8.3.40.0070.00718.88
8.3.30.0040.01118.72
8.3.20.0040.00419.17
8.3.10.0080.00021.60
8.3.00.0050.00319.48
8.2.180.0140.01016.50
8.2.170.0110.00322.96
8.2.160.0140.00020.46
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0070.00020.47
8.2.120.0050.00326.35
8.2.110.0090.00021.06
8.2.100.0040.00717.65
8.2.90.0080.00017.89
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0030.00522.27
8.2.30.0070.00020.91
8.2.20.0080.00017.93
8.2.10.0000.00717.90
8.2.00.0040.00418.05
8.1.280.0160.00725.92
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.98
8.1.230.0110.00020.76
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00717.35
8.1.190.0040.00417.23
8.1.180.0030.00618.10
8.1.170.0000.00818.50
8.1.160.0000.00719.02
8.1.150.0030.00520.61
8.1.140.0060.00319.50
8.1.130.0000.00718.87
8.1.120.0000.00717.43
8.1.110.0040.00417.27
8.1.100.0000.00717.38
8.1.90.0040.00417.24
8.1.80.0030.00617.29
8.1.70.0040.00417.29
8.1.60.0090.00017.46
8.1.50.0040.00417.53
8.1.40.0000.00717.41
8.1.30.0090.00017.58
8.1.20.0040.00417.50
8.1.10.0050.00317.46
8.1.00.0050.00317.57
8.0.300.0000.00719.98
8.0.290.0070.00016.75
8.0.280.0000.00818.51
8.0.270.0000.00717.25
8.0.260.0030.00316.68
8.0.250.0030.00316.92
8.0.240.0040.00416.81
8.0.230.0000.00716.76
8.0.220.0030.00316.72
8.0.210.0030.00316.69
8.0.200.0060.00016.86
8.0.190.0030.00616.71
8.0.180.0070.00016.67
8.0.170.0000.00716.70
8.0.160.0000.00716.80
8.0.150.0070.00016.76
8.0.140.0030.00516.77
8.0.130.0050.00013.29
8.0.120.0040.00416.75
8.0.110.0030.00316.86
8.0.100.0080.00016.79
8.0.90.0000.00816.64
8.0.80.0090.01216.84
8.0.70.0000.00716.86
8.0.60.0000.00816.86
8.0.50.0040.00416.67
8.0.30.0100.00816.82
8.0.20.0110.00817.40
8.0.10.0030.00316.96
8.0.00.0080.00816.73
7.4.330.0020.00215.55
7.4.320.0000.00716.44
7.4.300.0000.00616.60
7.4.290.0030.00316.51
7.4.280.0040.00416.49
7.4.270.0030.00516.42
7.4.260.0030.00513.35
7.4.250.0080.00016.45
7.4.240.0040.00416.49
7.4.230.0030.00316.43
7.4.220.0060.01216.54
7.4.210.0060.01316.52
7.4.200.0000.00716.60
7.4.160.0080.01316.51
7.4.150.0150.00917.40
7.4.140.0150.00717.86
7.4.130.0110.00716.47
7.4.120.0070.01016.42
7.3.330.0060.00313.12
7.3.320.0050.00013.12
7.3.310.0030.00616.19
7.3.300.0030.00316.21
7.3.290.0080.00716.27
7.3.280.0070.00916.28
7.3.270.0070.01017.40
7.3.260.0110.00816.48
7.3.250.0130.00816.31
7.3.240.0080.01116.47
7.1.60.2730.01733.12

preferences:
65.04 ms | 401 KiB | 5 Q