3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public $i = 0; public function _construct(){ $this->i = $this->i++; } } $f = new foo(); $x = new $f; echo $f instanceof foo; echo $f->i; echo $x instanceof foo; echo $x->i;

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.40.0110.00718.67
8.3.30.0070.00718.71
8.3.20.0090.00020.34
8.3.10.0050.00523.36
8.3.00.0090.00019.56
8.2.170.0140.00322.96
8.2.160.0110.00419.08
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00418.99
8.2.120.0000.00726.35
8.2.110.0000.00920.30
8.2.100.0120.00019.76
8.2.90.0080.00019.13
8.2.80.0030.00518.04
8.2.70.0000.00817.63
8.2.60.0040.00417.90
8.2.50.0060.00318.10
8.2.40.0040.00420.47
8.2.30.0000.00719.13
8.2.20.0040.00418.11
8.2.10.0040.00417.91
8.2.00.0040.00417.91
8.1.270.0040.00421.96
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00320.70
8.1.230.0070.00419.16
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.23
8.1.190.0080.00017.11
8.1.180.0070.00018.10
8.1.170.0030.00618.65
8.1.160.0000.00719.00
8.1.150.0100.00018.83
8.1.140.0000.00719.53
8.1.130.0040.00418.70
8.1.120.0000.00817.45
8.1.110.0000.00917.25
8.1.100.0070.00017.34
8.1.90.0040.00417.40
8.1.80.0070.00017.31
8.1.70.0030.00317.29
8.1.60.0040.00417.55
8.1.50.0000.00917.46
8.1.40.0040.00417.30
8.1.30.0000.00717.50
8.1.20.0040.00417.48
8.1.10.0040.00417.48
8.1.00.0050.00317.43
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0070.00017.27
8.0.260.0030.00516.80
8.0.250.0030.00316.88
8.0.240.0050.00316.99
8.0.230.0000.00816.91
8.0.220.0030.00316.77
8.0.210.0000.00816.79
8.0.200.0030.00316.89
8.0.190.0040.00416.86
8.0.180.0000.00716.81
8.0.170.0000.00716.87
8.0.160.0030.00316.84
8.0.150.0070.00016.86
8.0.140.0000.00716.76
8.0.130.0030.00313.25
8.0.120.0040.00416.76
8.0.110.0070.00016.77
8.0.100.0040.00416.94
8.0.90.0000.00816.71
8.0.80.0060.00916.86
8.0.70.0050.00316.83
8.0.60.0000.00716.85
8.0.50.0040.00416.83
8.0.30.0100.00816.92
8.0.20.0090.01117.40
8.0.10.0060.00316.77
8.0.00.0090.00916.47
7.4.330.0040.00415.55
7.4.320.0030.00316.54
7.4.300.0030.00316.38
7.4.290.0050.00316.45
7.4.280.0050.00216.58
7.4.270.0000.00616.43
7.4.260.0000.00816.51
7.4.250.0000.00716.33
7.4.240.0070.00016.35
7.4.230.0000.00716.38
7.4.220.0130.01316.49
7.4.210.0000.02016.54
7.4.200.0000.00716.51
7.4.160.0060.00916.39
7.4.150.0110.00717.40
7.4.140.0080.01017.86
7.4.130.0070.01116.38
7.4.120.0090.01116.52
7.4.110.0130.00616.39
7.4.100.0070.01416.47
7.4.90.0130.01016.34
7.4.80.0140.00419.39
7.4.70.0150.00616.51
7.4.60.0100.01116.29
7.4.50.0030.01016.39
7.4.40.0140.00316.46
7.4.30.0080.00816.41
7.4.00.0110.00614.69
7.3.330.0000.00513.27
7.3.320.0050.00013.11
7.3.310.0070.00016.24
7.3.300.0000.00616.16
7.3.290.0070.00816.28
7.3.280.0100.00816.23
7.3.270.0090.00917.40
7.3.260.0080.00916.31
7.3.250.0090.01016.30
7.3.240.0110.00516.41
7.3.230.0090.00916.33
7.3.210.0120.00416.62
7.3.200.0100.00616.58
7.3.190.0090.00916.59
7.3.180.0090.00616.12
7.3.170.0110.00416.52
7.3.160.0100.00616.34
7.3.120.0060.01315.00
7.3.110.0110.00714.79
7.3.100.0120.00314.61
7.3.90.0070.00314.87
7.3.80.0090.00414.97
7.3.70.0070.01114.77
7.3.60.0080.00414.78
7.3.50.0030.00614.89
7.3.40.0070.01014.82
7.3.30.0030.00914.75
7.3.20.0050.00516.30
7.3.10.0070.00316.63
7.3.00.0000.00916.29
7.2.330.0100.00716.69
7.2.320.0070.01516.29
7.2.310.0100.00716.69
7.2.300.0000.01616.26
7.2.290.0130.00516.74
7.2.250.0070.01415.27
7.2.240.0040.01114.89
7.2.230.0130.00315.28
7.2.220.0060.00615.07
7.2.210.0030.00614.96
7.2.200.0070.01015.14
7.2.190.0000.02014.95
7.2.180.0060.00615.03
7.2.170.0040.01114.89
7.2.60.0060.00916.93
7.2.00.0070.01119.31
7.1.330.0030.00915.68
7.1.320.0030.01015.79
7.1.310.0000.01415.59
7.1.300.0110.00715.67
7.1.290.0060.00515.77
7.1.280.0090.00915.55
7.1.270.0070.00715.39
7.1.260.0040.00715.72
7.1.200.0000.01115.89
7.1.100.0000.01117.98
7.1.70.0060.01317.03
7.1.60.0290.01634.74
7.1.50.0310.01434.66
7.1.40.0260.01534.21
7.1.30.0300.01834.26
7.1.20.0280.00734.37
7.1.10.0100.00716.38
7.1.00.0080.01016.75
7.0.200.0000.01916.94
7.0.190.0060.01016.93
7.0.180.0090.00916.18
7.0.170.0150.00416.28
7.0.160.0090.00616.30
7.0.150.0110.00716.22
7.0.140.0060.01216.40
7.0.130.0060.01316.50
7.0.120.0090.01216.52
7.0.110.0060.01216.20
7.0.100.0060.01316.39
7.0.90.0030.01516.21
7.0.80.0110.00916.53
7.0.70.0090.01216.28
7.0.60.0090.01215.99
7.0.50.0090.01016.28
7.0.40.0080.01216.30
7.0.30.0090.00916.39
7.0.20.0110.00816.59
7.0.10.0120.00316.43
7.0.00.0060.01116.47

preferences:
38.35 ms | 400 KiB | 5 Q