3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test; class Test { private $s; private $i; public function __construct(string $s, int $i) { $this->s = $s; $this->i = $i; } public function foo() { return $this->s . ' ' . $this->i; } } $a = new Test('', '0'); echo $a->foo();

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.0070.01116.63
8.3.50.0090.00922.11
8.3.40.0090.00918.86
8.3.30.0070.00718.84
8.3.20.0040.00420.33
8.3.10.0000.00823.63
8.3.00.0040.00419.50
8.2.180.0180.00318.36
8.2.170.0120.00422.96
8.2.160.0110.00420.52
8.2.150.0120.00324.18
8.2.140.0050.00324.66
8.2.130.0060.00317.50
8.2.120.0080.00026.35
8.2.110.0080.00320.54
8.2.100.0040.00818.03
8.2.90.0050.00319.17
8.2.80.0050.00317.97
8.2.70.0030.00517.49
8.2.60.0050.00317.93
8.2.50.0050.00318.07
8.2.40.0040.00419.26
8.2.30.0030.00620.64
8.2.20.0030.00617.63
8.2.10.0030.00517.88
8.2.00.0050.00217.88
8.1.280.0100.00725.92
8.1.270.0000.01124.02
8.1.260.0060.00928.09
8.1.250.0080.00028.09
8.1.240.0060.00319.44
8.1.230.0070.00417.66
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0070.00317.35
8.1.190.0000.00917.23
8.1.180.0080.00018.10
8.1.170.0050.00318.73
8.1.160.0000.00722.07
8.1.150.0040.00418.91
8.1.140.0050.00219.60
8.1.130.0030.00317.74
8.1.120.0040.00417.40
8.1.110.0040.00417.37
8.1.100.0050.00317.36
8.1.90.0040.00417.50
8.1.80.0040.00417.36
8.1.70.0000.00717.32
8.1.60.0080.00017.58
8.1.50.0060.00317.53
8.1.40.0000.00817.38
8.1.30.0030.00517.67
8.1.20.0030.00517.47
8.1.10.0000.00917.61
8.1.00.0000.00817.48
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0040.00417.17
8.0.260.0040.00417.27
8.0.250.0000.00717.02
8.0.240.0030.00816.91
8.0.230.0030.00316.94
8.0.220.0000.00716.97
8.0.210.0000.00816.81
8.0.200.0060.00016.98
8.0.190.0040.00416.95
8.0.180.0000.00716.96
8.0.170.0030.00516.93
8.0.160.0040.00416.93
8.0.150.0000.00716.96
8.0.140.0080.00016.88
8.0.130.0040.00413.38
8.0.120.0040.00416.83
8.0.110.0070.00016.86
8.0.100.0070.00017.02
8.0.90.0040.00416.93
8.0.80.0070.01316.90
8.0.70.0030.00517.02
8.0.60.0000.00717.01
8.0.50.0000.00716.82
8.0.30.0060.01117.24
8.0.20.0070.01417.40
8.0.10.0040.00417.13
8.0.00.0150.00716.89
7.4.330.0060.00016.73
7.4.320.0060.00016.47
7.4.300.0030.00316.52
7.4.290.0000.00716.45
7.4.280.0040.00416.46
7.4.270.0000.00716.62
7.4.260.0030.00316.48
7.4.250.0050.00316.62
7.4.240.0030.00416.51
7.4.230.0000.00716.38
7.4.220.0060.01316.47
7.4.210.0040.01116.62
7.4.200.0030.00316.63
7.4.160.0060.00916.52
7.4.150.0030.01717.40
7.4.140.0110.00817.86
7.4.130.0060.01216.50
7.4.120.0110.00916.53
7.4.110.0100.01016.32
7.4.100.0100.01316.65
7.4.90.0070.01016.48
7.4.80.0070.01319.39
7.4.70.0090.00916.49
7.4.60.0090.00616.42
7.4.50.0070.01016.39
7.4.40.0100.00616.47
7.4.30.0150.00616.56
7.4.00.0110.00515.03
7.3.330.0060.00013.12
7.3.320.0050.00013.08
7.3.310.0030.00416.29
7.3.300.0060.00016.25
7.3.290.0050.00216.23
7.3.280.0100.00916.24
7.3.270.0070.01017.40
7.3.260.0060.01316.50
7.3.250.0070.01116.48
7.3.240.0120.00516.48
7.3.230.0120.00416.54
7.3.210.0070.01016.32
7.3.200.0110.01116.29
7.3.190.0070.01016.50
7.3.180.0140.00216.47
7.3.170.0030.01216.44
7.3.160.0140.00716.61
7.3.120.0090.00914.48
7.3.110.0100.00914.70
7.3.100.0100.00714.77
7.3.90.0110.00015.03
7.3.80.0030.00714.75
7.3.70.0100.00014.53
7.3.60.0160.00014.71
7.3.50.0070.00314.67
7.3.40.0060.01214.59
7.3.30.0040.01114.34
7.3.20.0030.01216.75
7.3.10.0150.00016.67
7.3.00.0060.00616.70
7.2.330.0060.01016.84
7.2.320.0150.00316.85
7.2.310.0070.01016.67
7.2.300.0100.01016.44
7.2.290.0080.01716.70
7.2.250.0040.01514.74
7.2.240.0080.01214.66
7.2.230.0000.01415.20
7.2.220.0070.00315.00
7.2.210.0030.01215.25
7.2.200.0100.00314.80
7.2.190.0110.00015.10
7.2.180.0050.00515.23
7.2.170.0040.01114.74
7.2.60.0060.00917.09
7.2.00.0040.01119.28
7.1.330.0060.00915.51
7.1.320.0030.00615.40
7.1.310.0000.01315.62
7.1.300.0000.01415.80
7.1.290.0130.00015.89
7.1.280.0060.00915.69
7.1.270.0060.00615.68
7.1.260.0120.00315.59
7.1.200.0090.00015.88
7.1.100.0060.00618.09
7.1.70.0000.00817.12
7.1.60.0030.02019.48
7.1.50.0060.00916.90
7.1.00.0030.07722.42
7.0.200.0390.00014.37
7.0.60.0070.06319.78
7.0.50.0000.05717.95
7.0.40.0130.05020.16
7.0.30.0430.07320.08
7.0.20.0330.07320.05
7.0.10.0070.05720.30
7.0.00.0030.04020.11
5.6.280.0000.04321.16
5.6.210.0070.04720.48
5.6.200.0030.07318.18
5.6.190.0000.09020.68
5.6.180.0330.07320.62
5.6.170.0200.08320.34
5.6.160.0070.08320.57
5.6.150.0030.04018.16
5.6.140.0130.06018.18
5.6.130.0030.06018.28
5.6.120.0030.08721.15
5.6.110.0130.08020.99
5.6.100.0170.07021.00
5.6.90.0100.04321.01
5.6.80.0030.08320.54
5.5.350.4100.04720.37
5.5.340.0070.06717.92
5.5.330.0100.07720.34
5.5.320.0070.09320.34
5.5.310.0270.07720.30
5.5.300.0100.08017.99
5.5.290.0070.04717.94
5.5.280.0070.08320.97
5.5.270.0070.08320.77
5.5.260.0030.05320.88
5.5.250.0030.04720.80
5.5.240.0200.06720.34

preferences:
31.48 ms | 401 KiB | 5 Q