3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __constructor(){ echo 'oki'; } public function Test($x){ echo $x; } } $t1 = new Test(); $t2 = new Test(100);

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.00416.63
8.3.50.0140.01021.92
8.3.40.0150.00018.76
8.3.30.0090.00618.77
8.3.20.0070.00020.29
8.3.10.0070.00023.64
8.3.00.0080.00019.13
8.2.180.0070.00716.38
8.2.170.0040.01122.96
8.2.160.0090.00620.35
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00817.63
8.2.110.0040.00719.18
8.2.100.0120.00017.91
8.2.90.0030.00619.05
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0000.00819.32
8.2.50.0040.00418.10
8.2.40.0030.00620.66
8.2.30.0040.00420.50
8.2.20.0030.00617.55
8.2.10.0040.00417.98
8.2.00.0000.00717.98
8.1.280.0120.00625.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00921.30
8.1.230.0060.00919.07
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00917.22
8.1.190.0060.00317.10
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0050.00218.82
8.1.150.0040.00418.84
8.1.140.0000.00819.43
8.1.130.0000.00717.65
8.1.120.0040.00417.40
8.1.110.0040.00417.40
8.1.100.0040.00417.32
8.1.90.0040.00417.37
8.1.80.0040.00417.34
8.1.70.0000.00717.36
8.1.60.0000.00817.54
8.1.50.0030.00617.53
8.1.40.0100.00017.47
8.1.30.0080.00017.46
8.1.20.0030.00617.55
8.1.10.0000.00717.51
8.1.00.0050.00217.37
8.0.300.0060.00318.77
8.0.290.0040.00416.58
8.0.280.0000.00718.39
8.0.270.0000.00717.12
8.0.260.0000.00617.11
8.0.250.0070.00016.79
8.0.240.0000.00816.91
8.0.230.0000.00716.93
8.0.220.0000.00716.85
8.0.210.0030.00316.86
8.0.200.0040.00416.84
8.0.190.0080.00016.91
8.0.180.0080.00016.74
8.0.170.0050.00316.87
8.0.160.0000.00816.70
8.0.150.0070.00016.90
8.0.140.0070.00016.68
8.0.130.0060.00013.22
8.0.120.0040.00416.68
8.0.110.0040.00416.71
8.0.100.0070.00016.63
8.0.90.0040.00416.90
8.0.80.0060.01216.80
8.0.70.0040.00416.84
8.0.60.0070.00016.90
8.0.50.0050.00316.71
8.0.30.0120.00716.93
8.0.20.0090.01117.40
8.0.10.0000.00716.86
8.0.00.0110.00616.64
7.4.330.0030.00315.08
7.4.320.0030.00316.48
7.4.300.0060.00016.42
7.4.290.0050.00316.46
7.4.280.0050.00216.43
7.4.270.0030.00316.59
7.4.260.0110.00016.44
7.4.250.0040.00416.36
7.4.240.0020.00516.53
7.4.230.0070.00016.29
7.4.220.0060.01216.66
7.4.210.0050.01116.47
7.4.200.0000.00716.64
7.4.160.0080.00816.36
7.4.150.0110.00717.40
7.4.140.0130.01217.86
7.4.130.0080.01016.28
7.4.120.0070.00916.44
7.4.110.0150.00316.48
7.4.100.0070.01116.45
7.4.90.0070.01016.33
7.4.80.0140.00719.39
7.4.70.0140.00316.48
7.4.60.0170.00016.41
7.4.50.0050.00316.58
7.4.40.0100.00716.58
7.4.30.0070.01016.66
7.4.00.0050.00714.71
7.3.330.0000.00513.37
7.3.320.0050.00013.24
7.3.310.0070.00016.41
7.3.300.0060.00016.33
7.3.290.0030.00316.38
7.3.280.0130.00516.41
7.3.270.0180.00017.40
7.3.260.0100.00716.54
7.3.250.0090.01016.40
7.3.240.0050.01316.24
7.3.230.0100.00716.55
7.3.210.0160.00016.41
7.3.200.0130.00316.59
7.3.190.0130.00716.44
7.3.180.0090.00616.50
7.3.170.0120.00916.48
7.3.160.0120.00616.36
7.3.120.0030.01414.85
7.3.110.0030.01614.77
7.3.100.0110.00414.82
7.3.90.0120.00314.76
7.3.80.0070.00315.14
7.3.70.0070.01014.93
7.3.60.0030.01014.82
7.3.50.0060.00314.60
7.3.40.0000.01714.91
7.3.30.0060.00314.61
7.3.20.0080.00416.66
7.3.10.0030.01016.47
7.3.00.0030.01216.39
7.2.330.0130.00716.32
7.2.320.0120.00616.63
7.2.310.0130.01016.53
7.2.300.0070.01116.54
7.2.290.0070.01416.43
7.2.250.0060.01314.86
7.2.240.0100.01014.70
7.2.230.0030.01015.02
7.2.220.0150.00314.74
7.2.210.0070.00714.83
7.2.200.0030.00614.86
7.2.190.0060.00814.99
7.2.180.0030.01215.04
7.2.170.0060.00314.82
7.2.130.0080.00716.71
7.2.120.0000.01116.62
7.2.110.0070.01016.73
7.2.100.0080.00316.63
7.2.90.0100.00316.65
7.2.80.0060.00916.58
7.2.70.0060.00716.73
7.2.60.0050.00816.72
7.2.50.0020.00816.61
7.2.40.0010.01016.82
7.2.30.0080.00816.71
7.2.20.0050.00916.75
7.2.10.0060.00916.59
7.2.00.0050.00917.51
7.1.330.0080.00815.74
7.1.320.0040.00715.71
7.1.310.0040.00815.61
7.1.300.0040.00815.66
7.1.290.0060.00615.55
7.1.280.0000.01015.27
7.1.270.0040.00815.66
7.1.260.0090.00315.76
7.1.250.0080.00515.42
7.1.240.0030.01015.36
7.1.230.0090.00615.54
7.1.220.0030.00615.68
7.1.210.0120.00615.61
7.1.200.0050.00715.60
7.1.190.0070.00715.19
7.1.180.0060.00615.64
7.1.170.0060.00615.44
7.1.160.0110.00415.72
7.1.150.0080.00415.54
7.1.140.0000.01115.25
7.1.130.0030.01015.53
7.1.120.0080.00815.52
7.1.110.0030.00615.54
7.1.100.0020.00816.94
7.1.90.0060.00615.30
7.1.80.0000.01215.76
7.1.70.0050.00216.26
7.1.60.0090.00717.51
7.1.50.0060.01116.15
7.1.40.0060.00815.70
7.1.30.0040.00415.43
7.1.20.0100.00015.61
7.1.10.0100.00315.61
7.1.00.0020.04419.04
7.0.330.0110.00314.64
7.0.320.0070.00415.20
7.0.310.0040.00415.14
7.0.300.0000.01115.07
7.0.290.0070.00315.05
7.0.280.0060.00615.38
7.0.270.0030.00715.26
7.0.260.0000.01315.33
7.0.250.0070.01015.31
7.0.240.0050.00515.22
7.0.230.0110.00015.13
7.0.220.0050.00515.27
7.0.210.0060.00615.18
7.0.200.0120.00514.97
7.0.190.0100.01015.15
7.0.180.0040.00715.21
7.0.170.0070.00715.24
7.0.160.0100.00715.27
7.0.150.0030.01215.00
7.0.140.0060.00615.00
7.0.130.0000.01315.20
7.0.120.0030.01015.38
7.0.110.0030.01015.41
7.0.100.0090.00615.07
7.0.90.0070.00715.19
7.0.80.0040.01115.01
7.0.70.0030.00515.08
7.0.60.0090.04117.62
7.0.50.0050.04016.55
7.0.40.0050.03316.64
7.0.30.0050.02616.78
7.0.20.0290.03616.69
7.0.10.0040.02416.79
7.0.00.0050.02616.76
5.6.380.0000.01414.66
5.6.370.0090.00614.37
5.6.360.0070.00714.46
5.6.350.0080.00414.14
5.6.340.0030.01014.24
5.6.330.0090.00914.29
5.6.320.0110.00014.29
5.6.310.0070.00713.84
5.6.300.0060.00314.33
5.6.290.0060.00614.27
5.6.280.0120.02817.64
5.6.270.0070.00714.21
5.6.260.0110.00314.10
5.6.250.0030.00614.18
5.6.240.0120.00014.13
5.6.230.0040.00714.23
5.6.220.0030.01013.86
5.6.210.0070.04517.16
5.6.200.0050.04315.98
5.6.190.0070.04217.28
5.6.180.0220.03817.22
5.6.170.0120.03517.29
5.6.160.0100.03217.31
5.6.150.0090.03016.21
5.6.140.0040.04516.26
5.6.130.0050.02715.98
5.6.120.0050.04317.67
5.6.110.0050.04917.62
5.6.100.0070.04117.53
5.6.90.0030.03717.56
5.6.80.0090.02117.31
5.6.70.0090.00613.82
5.6.60.0000.01414.12
5.6.50.0050.00513.77
5.6.40.0030.00614.14
5.6.30.0030.01313.82
5.6.20.0090.00414.03
5.6.10.0060.00614.21
5.6.00.0140.00014.10
5.5.380.0000.00611.36
5.5.370.0030.00610.89
5.5.360.0060.00611.27
5.5.350.2140.02015.70
5.5.340.0090.04114.39
5.5.330.0030.04315.63
5.5.320.0130.02315.69
5.5.310.0160.04115.63
5.5.300.0000.02514.34
5.5.290.0080.03914.40
5.5.280.0030.02515.79
5.5.270.0030.04315.76
5.5.260.0020.03715.72
5.5.250.0080.02015.70
5.5.240.0030.01915.62
5.5.230.0060.00310.92
5.5.220.0000.00811.21
5.5.210.0030.00711.04
5.5.200.0070.00010.96
5.5.190.0070.00010.68
5.5.180.0060.00610.82
5.5.170.0030.00711.04
5.5.160.0040.00811.09
5.5.150.0030.00910.94
5.5.140.0060.00010.82
5.5.130.0110.00011.06
5.5.120.0090.00310.73
5.5.110.0030.00511.13
5.5.100.0000.01010.81
5.5.90.0040.00411.25
5.5.80.0030.00610.90
5.5.70.0030.00910.69
5.5.60.0000.01011.11
5.5.50.0060.00810.84
5.5.40.0000.01011.18
5.5.30.0060.00010.55
5.5.20.0040.00410.87
5.5.10.0030.01010.88
5.5.00.0080.00410.86

preferences:
57.56 ms | 401 KiB | 5 Q