3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ImageService { public function __construct( private ImageTransformer $imageTransformer, private PostService $postService ) { } // other methods here }

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.120.0050.00324.18
8.4.110.0040.00519.05
8.4.100.0270.00817.48
8.4.90.0130.00720.50
8.4.80.0050.00324.15
8.4.70.0070.00119.10
8.4.60.0130.00720.42
8.4.50.0130.00718.86
8.4.40.0070.01122.28
8.4.30.0030.01620.52
8.4.20.0190.01017.47
8.4.10.0260.00718.83
8.3.250.0110.00718.72
8.3.240.0130.00616.88
8.3.230.0060.00216.54
8.3.220.0050.00318.98
8.3.210.0090.00918.33
8.3.200.0060.00316.73
8.3.190.0060.00417.11
8.3.180.0120.00618.75
8.3.170.0110.00817.03
8.3.160.0090.01018.90
8.3.150.0240.00916.61
8.3.140.0270.00516.31
8.3.130.0150.00716.70
8.3.120.0220.00817.18
8.3.110.0210.00618.03
8.3.100.0230.00716.40
8.3.90.0200.00819.89
8.3.80.0190.00616.28
8.3.70.0150.01116.53
8.3.60.0200.00816.91
8.3.50.0230.00319.97
8.3.40.0190.00718.72
8.3.30.0170.00519.76
8.3.20.0150.00519.55
8.3.10.0120.00819.74
8.3.00.0090.00418.94
8.2.290.0050.00417.19
8.2.280.0100.01018.04
8.2.270.0240.00316.99
8.2.260.0140.00916.64
8.2.250.0170.00316.60
8.2.240.0180.00516.48
8.2.230.0150.00718.26
8.2.220.0250.00318.79
8.2.210.0170.00619.73
8.2.200.0120.00516.83
8.2.190.0170.00816.38
8.2.180.0200.00519.41
8.2.170.0190.00617.97
8.2.160.0190.00819.32
8.2.150.0130.00720.13
8.2.140.0100.00519.70
8.2.130.0170.00520.27
8.2.120.0170.00518.65
8.2.110.0190.00519.25
8.2.100.0160.00818.26
8.2.90.0170.00518.20
8.2.80.0200.00518.35
8.2.70.0170.00618.13
8.2.60.0160.00618.14
8.2.50.0140.00518.63
8.2.40.0130.00718.55
8.2.30.0130.00518.42
8.2.20.0110.00518.22
8.2.10.0090.00718.57
8.2.00.0140.00618.50
8.1.330.0130.00615.81
8.1.320.0150.00418.06
8.1.310.0190.00716.23
8.1.300.0160.00917.20
8.1.290.0170.00520.93
8.1.280.0170.00519.26
8.1.270.0130.00819.40
8.1.260.0160.00620.18
8.1.250.0150.00620.68
8.1.240.0140.00719.14
8.1.230.0130.00718.30
8.1.220.0160.00318.01
8.1.210.0140.00618.62
8.1.200.0160.00517.85
8.1.190.0140.00717.69
8.1.180.0140.00617.99
8.1.170.0120.00718.15
8.1.160.0150.00318.39
8.1.150.0140.00518.41
8.1.140.0140.00518.28
8.1.130.0110.00817.94
8.1.120.0130.00517.86
8.1.110.0160.00517.92
8.1.100.0140.00917.85
8.1.90.0120.00717.84
8.1.80.0120.00617.88
8.1.70.0110.00517.74
8.1.60.0180.00518.02
8.1.50.0160.00517.94
8.1.40.0140.00417.98
8.1.30.0110.00918.13
8.1.20.0150.00518.08
8.1.10.0120.00417.78
8.1.00.0130.00717.79
8.0.300.0130.00317.74
8.0.290.0130.00417.18
8.0.280.0130.00417.55
8.0.270.0110.00617.51
8.0.260.0120.00617.32
8.0.250.0090.00717.25
8.0.240.0120.00517.33
8.0.230.0110.00517.35
8.0.220.0100.00517.26
8.0.210.0130.00317.14
8.0.200.0090.00617.02
8.0.190.0170.00217.20
8.0.180.0150.00417.18
8.0.170.0120.00617.24
8.0.160.0140.00517.25
8.0.150.0150.00317.17
8.0.140.0150.00517.08
8.0.130.0150.00417.28
8.0.120.0140.00517.20
8.0.110.0150.00317.28
8.0.100.0140.00517.09
8.0.90.0160.00317.18
8.0.80.0120.00717.16
8.0.70.0150.00317.13
8.0.60.0140.00516.69
8.0.50.0110.00716.74
8.0.30.0160.00316.75
8.0.20.0100.00716.88
8.0.10.0130.00416.80
8.0.00.0160.00417.53
7.4.330.0090.00416.85
7.4.320.0120.00416.52
7.4.300.0080.00516.43
7.4.290.0160.00416.48
7.4.280.0150.00416.96
7.4.270.0140.00616.84
7.4.260.0150.00516.86
7.4.250.0160.00216.92
7.4.240.0140.00616.94
7.4.230.0120.00716.92
7.4.220.0110.00717.04
7.4.210.0150.00316.97
7.4.200.0120.00517.00
7.4.190.0130.00416.94
7.4.180.0140.00416.98
7.4.160.0110.00716.93
7.4.150.0100.00716.89
7.4.140.0100.00617.17
7.4.130.0160.00717.17
7.4.120.0160.00617.18
7.4.110.0150.00816.87
7.4.100.0220.00716.86
7.4.90.0140.00616.82
7.4.80.0190.00717.13
7.4.70.0170.00816.84
7.4.60.0190.00417.07
7.4.50.0210.00416.98
7.4.40.0180.00516.77
7.4.30.0220.00417.10
7.4.20.0210.00516.86
7.4.10.0170.00916.79
7.4.00.0150.00517.06
7.3.330.0130.00516.28
7.3.320.0140.00616.22
7.3.310.0140.00616.27
7.3.300.0130.00816.23
7.3.290.0200.00116.20
7.3.280.0150.00516.73
7.3.270.0170.00516.70
7.3.260.0190.00616.80
7.3.250.0200.00516.80
7.3.240.0170.00516.78
7.3.230.0150.00716.79
7.3.220.0140.00816.78
7.3.210.0230.00717.07
7.3.200.0190.00616.75
7.3.190.0200.00416.76
7.3.180.0200.00716.81
7.3.170.0210.00516.81
7.3.160.0240.00416.80
7.3.150.0180.00816.79
7.3.140.0200.00716.75
7.3.130.0230.00716.60
7.3.120.0210.00616.78
7.3.110.0190.00716.72
7.3.100.0180.00816.72
7.3.90.0190.00716.92
7.3.80.0200.00516.83
7.3.70.0190.00716.76
7.3.60.0170.00716.89
7.3.50.0160.01016.78
7.3.40.0230.00516.83
7.3.30.0230.00516.86
7.3.20.0200.00918.00
7.3.10.0200.00918.13
7.3.00.0200.00718.02

preferences:
28.55 ms | 403 KiB | 5 Q