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 's: ' . $this->s . ', i:' . $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.0100.01016.50
8.3.50.0070.01418.30
8.3.40.0070.01418.65
8.3.30.0070.00718.89
8.3.20.0080.00620.21
8.3.10.0050.00323.59
8.3.00.0040.00419.24
8.2.180.0040.01118.51
8.2.170.0070.00722.96
8.2.160.0090.00620.39
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0100.00026.16
8.2.120.0080.00019.23
8.2.110.0030.00620.35
8.2.100.0080.00418.04
8.2.90.0000.00719.06
8.2.80.0000.00917.97
8.2.70.0030.00617.38
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0050.00319.41
8.2.30.0000.00720.63
8.2.20.0040.00417.68
8.2.10.0070.00018.06
8.2.00.0040.00418.00
8.1.280.0030.01025.92
8.1.270.0040.00822.05
8.1.260.0040.00426.35
8.1.250.0140.00028.09
8.1.240.0090.00023.93
8.1.230.0060.00619.55
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.36
8.1.190.0000.00817.38
8.1.180.0060.00318.10
8.1.170.0030.00518.72
8.1.160.0080.00022.07
8.1.150.0040.00418.89
8.1.140.0030.00619.50
8.1.130.0040.00417.77
8.1.120.0050.00317.49
8.1.110.0040.00417.51
8.1.100.0000.00717.41
8.1.90.0050.00317.53
8.1.80.0070.00017.52
8.1.70.0000.00817.46
8.1.60.0040.00417.59
8.1.50.0030.00617.56
8.1.40.0040.00417.50
8.1.30.0040.00417.49
8.1.20.0000.00817.67
8.1.10.0000.00917.58
8.1.00.0040.00417.49
8.0.300.0000.00918.77
8.0.290.0000.00816.75
8.0.280.0000.00718.40
8.0.270.0030.00517.18
8.0.260.0060.00317.20
8.0.250.0000.00716.89
8.0.240.0040.00417.00
8.0.230.0080.00016.98
8.0.220.0040.00416.86
8.0.210.0000.00816.93
8.0.200.0030.00317.05
8.0.190.0040.00416.98
8.0.180.0080.00016.91
8.0.170.0040.00416.97
8.0.160.0030.00516.98
8.0.150.0030.00316.82
8.0.140.0050.00316.93
8.0.130.0030.00313.39
8.0.120.0040.00416.92
8.0.110.0040.00416.94
8.0.100.0070.00016.98
8.0.90.0070.00017.00
8.0.80.0030.01416.89
8.0.70.0070.00017.02
8.0.60.0000.00816.83
8.0.50.0040.00416.95
8.0.30.0130.00517.23
8.0.20.0110.00717.40
8.0.10.0050.00216.87
8.0.00.0080.01316.90
7.4.330.0000.00516.85
7.4.320.0030.00316.56
7.4.300.0030.00316.63
7.4.290.0030.00316.41
7.4.280.0020.00616.68
7.4.270.0040.00416.66
7.4.260.0000.00616.48
7.4.250.0070.00016.55
7.4.240.0030.00316.56
7.4.230.0000.00716.55
7.4.220.0140.01016.62
7.4.210.0100.00516.53
7.4.200.0070.00016.39
7.4.160.0060.00916.54
7.4.150.0110.00717.40
7.4.140.0070.01117.86
7.4.130.0160.00416.71
7.4.120.0120.00716.36
7.4.110.0100.01016.65
7.4.100.0170.00016.28
7.4.90.0080.00816.54
7.4.80.0150.01019.39
7.4.70.0000.01816.52
7.4.60.0110.00416.74
7.4.50.0060.00616.34
7.4.40.0140.00316.59
7.4.30.0080.00816.51
7.4.00.0060.00915.12
7.3.330.0000.00513.30
7.3.320.0000.00513.22
7.3.310.0040.00416.20
7.3.300.0000.00716.34
7.3.290.0030.00316.30
7.3.280.0080.00916.31
7.3.270.0140.00317.40
7.3.260.0170.00016.57
7.3.250.0130.00616.24
7.3.240.0100.01016.29
7.3.230.0110.00716.39
7.3.210.0000.01716.68
7.3.200.0090.01316.44
7.3.190.0080.01216.45
7.3.180.0060.01116.32
7.3.170.0060.00916.33
7.3.160.0030.01316.38
7.2.330.0110.00516.89
7.2.320.0070.01116.77
7.2.310.0070.01016.71
7.2.300.0120.00816.40
7.2.290.0070.01416.55
7.2.60.0030.01017.02
7.2.00.0060.00619.35
7.1.200.0070.00715.52
7.1.100.0030.00518.16
7.1.70.0030.00917.11
7.1.60.0210.00319.48
7.1.50.0070.01416.86
7.1.00.0070.07322.45
7.0.200.0330.00314.48
7.0.60.0100.08719.90
7.0.50.0070.08017.89
7.0.40.0130.08020.30
7.0.30.0370.07020.06
7.0.20.0330.07320.09
7.0.10.0000.06320.24
7.0.00.0070.03720.09
5.6.280.0030.05321.08
5.6.210.0030.04320.63
5.6.200.0000.04718.14
5.6.190.0100.07720.61
5.6.180.0300.07720.63
5.6.170.0170.07020.44
5.6.160.0070.08320.62
5.6.150.0030.04318.14
5.6.140.0070.08018.18
5.6.130.0100.07318.15
5.6.120.0100.08320.95
5.6.110.0100.07721.14
5.6.100.0070.08321.14
5.6.90.0100.07721.01
5.6.80.0100.08020.47
5.5.350.4230.04320.31
5.5.340.0230.06317.98
5.5.330.0030.08320.47
5.5.320.0100.07720.27
5.5.310.0270.07720.26
5.5.300.0030.04017.95
5.5.290.0000.04317.98
5.5.280.0200.07320.97
5.5.270.0170.07720.90
5.5.260.0130.06020.74
5.5.250.0100.05720.63
5.5.240.0200.04020.19

preferences:
45.24 ms | 400 KiB | 5 Q