3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeService { private OldToNewConverterInterface $converter; public function __construct(OldToNewConverterInterface $converter) { $this->converter = $converter; } public function doSomethingWithOld(OldInterface $old): void { // Do stuff // At some point, convert $new = $this->converter->convert($old); // Do some other stuff } }

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.4.140.0130.00917.41
8.4.130.0130.00718.82
8.4.120.0040.00424.06
8.4.110.0120.01122.60
8.4.100.0100.00717.69
8.4.90.0140.00622.52
8.4.80.0060.00317.82
8.4.70.0060.00318.87
8.4.60.0090.00718.81
8.4.50.0140.00517.81
8.4.40.0130.00718.25
8.4.30.0110.00618.04
8.4.20.0150.00618.08
8.4.10.0110.00517.49
8.3.260.0090.01016.56
8.3.250.0110.00718.86
8.3.240.0090.00816.49
8.3.230.0110.00816.43
8.3.220.0110.00816.91
8.3.210.0090.00918.47
8.3.200.0050.00316.50
8.3.190.0130.00516.72
8.3.180.0140.00417.75
8.3.170.0150.00617.51
8.3.160.0130.00616.70
8.3.150.0140.00716.51
8.3.140.0160.00316.62
8.3.130.0100.00417.34
8.3.120.0090.00417.58
8.3.110.0090.00418.67
8.3.100.0120.00220.23
8.3.90.0110.00421.55
8.3.80.0150.00017.76
8.3.70.0130.00816.43
8.3.60.0130.00517.37
8.3.50.0150.00616.36
8.3.40.0140.00317.94
8.3.30.0130.00417.88
8.3.20.0070.00520.88
8.3.10.0110.00320.97
8.3.00.0050.00521.72
8.2.290.0130.00520.25
8.2.280.0100.00417.45
8.2.270.0130.00516.52
8.2.260.0090.00916.42
8.2.250.0080.00516.47
8.2.240.0080.00717.32
8.2.230.0100.00519.36
8.2.220.0110.00226.95
8.2.210.0100.00221.37
8.2.200.0120.00417.65
8.2.190.0110.00616.37
8.2.180.0170.00321.15
8.2.170.0180.00218.13
8.2.160.0160.00720.23
8.2.150.0130.00321.43
8.2.140.0100.00420.96
8.2.130.0090.00621.81
8.2.120.0090.00619.15
8.2.110.0110.00518.89
8.2.100.0150.00117.54
8.2.90.0100.00417.44
8.2.80.0070.00717.91
8.2.70.0090.00517.59
8.2.60.0100.00117.76
8.2.50.0040.00417.78
8.2.40.0050.00319.20
8.2.30.0060.00318.24
8.2.20.0060.00217.65
8.2.10.0080.00119.03
8.2.00.0070.00118.30
8.1.330.0120.00621.68
8.1.320.0110.00815.87
8.1.310.0130.00416.94
8.1.300.0090.00417.19
8.1.290.0080.00623.29
8.1.280.0150.00320.69
8.1.270.0090.00420.54
8.1.260.0090.00422.54
8.1.250.0090.00522.58
8.1.240.0170.00419.69
8.1.230.0130.00617.36
8.1.220.0070.00617.41
8.1.210.0080.00417.92
8.1.200.0110.00417.16
8.1.190.0100.00417.04
8.1.180.0110.00417.55
8.1.170.0140.00517.79
8.1.160.0180.00518.89
8.1.150.0150.00517.96
8.1.140.0080.00717.96
8.1.130.0110.00618.52
8.1.120.0110.00517.12
8.1.110.0110.00317.30
8.1.100.0160.00417.06
8.1.90.0170.00717.21
8.1.80.0130.00817.27
8.1.70.0120.00517.19
8.1.60.0150.00817.36
8.1.50.0190.00517.32
8.1.40.0150.00817.32
8.1.30.0070.00817.43
8.1.20.0120.00217.43
8.1.10.0160.00717.23
8.1.00.0180.00517.27
8.0.300.0150.00518.26
8.0.290.0140.00816.45
8.0.280.0170.00717.43
8.0.270.0090.00516.56
8.0.260.0090.00517.56
8.0.250.0130.00416.69
8.0.240.0110.00316.67
8.0.230.0140.00516.71
8.0.220.0100.00416.59
8.0.210.0120.00316.65
8.0.200.0180.00416.77
8.0.190.0180.00316.67
8.0.180.0120.00516.58
8.0.170.0110.00416.62
8.0.160.0130.00216.56
8.0.150.0160.00516.56
8.0.140.0110.00416.56
8.0.130.0070.00514.84
8.0.120.0150.00716.58
8.0.110.0160.00716.56
8.0.100.0100.00816.36
8.0.90.0120.00216.62
8.0.80.0160.00716.65
8.0.70.0170.00516.45
8.0.60.0130.00516.57
8.0.50.0170.00816.50
8.0.30.0130.00816.59
8.0.20.0110.01416.67
8.0.10.0110.00616.72
8.0.00.0090.01116.83
7.4.330.0100.00415.82
7.4.320.0110.00616.21
7.4.300.0170.00416.33
7.4.290.0080.00916.24
7.4.280.0120.00516.31
7.4.270.0100.00616.16
7.4.260.0090.00314.58
7.4.250.0080.00516.25
7.4.240.0050.00716.31
7.4.230.0100.00516.19
7.4.220.0050.00616.32
7.4.210.0100.00816.31
7.4.200.0080.00616.46
7.4.190.0140.00616.20
7.4.180.0170.00416.34
7.4.160.0110.00916.46
7.4.150.0150.00116.29
7.4.140.0130.00716.26
7.4.130.0110.00616.21
7.4.120.0080.00916.24
7.4.110.0120.00516.26
7.4.100.0100.00616.29
7.4.90.0110.00616.20
7.4.80.0100.00716.33
7.4.70.0090.01116.07
7.4.60.0100.00716.18
7.4.50.0100.00916.03
7.4.40.0100.00616.19
7.4.30.0100.00716.18
7.4.20.0110.00616.29
7.4.10.0120.00516.18
7.4.00.0110.00716.11
7.3.330.0060.00716.06
7.3.320.0100.00314.58
7.3.310.0080.00515.90
7.3.300.0110.00216.06
7.3.290.0090.00416.00
7.3.280.0060.00916.11
7.3.270.0140.00416.13
7.3.260.0110.00915.98
7.3.250.0130.00416.04
7.3.240.0140.00316.15
7.3.230.0110.00616.11
7.3.220.0100.00716.01
7.3.210.0120.00715.99
7.3.200.0140.00515.98
7.3.190.0100.01015.88
7.3.180.0140.00416.07
7.3.170.0110.01016.08
7.3.160.0140.00716.01
7.3.150.0100.00815.93
7.3.140.0080.00915.93
7.3.130.0100.00615.94
7.3.120.0110.00615.98
7.3.110.0130.00415.81
7.3.100.0090.00815.83
7.3.90.0080.00916.07
7.3.80.0070.00915.93
7.3.70.0130.00415.99
7.3.60.0100.00616.10
7.3.50.0090.01115.97
7.3.40.0110.00616.17
7.3.30.0080.01216.16
7.3.20.0140.00317.05
7.3.10.0110.00516.99
7.3.00.0290.00916.93

preferences:
97.12 ms | 403 KiB | 5 Q