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.3.60.0070.01018.11
8.3.50.0160.00316.32
8.3.40.0210.00519.64
8.3.30.0120.00721.46
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.180.0110.00725.92
8.2.170.0110.00418.83
8.2.160.0140.00022.96
8.2.150.0050.00325.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0050.00321.00
8.2.110.0110.00521.21
8.2.100.0110.00719.21
8.2.90.0080.00719.05
8.2.80.0100.00519.57
8.2.70.0090.00619.11
8.2.60.0110.00319.11
8.2.50.0100.00419.33
8.2.40.0060.00819.77
8.2.30.0100.00519.73
8.2.20.0080.00619.18
8.2.10.0050.01019.92
8.2.00.0050.00919.91
8.1.280.0140.00025.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00621.37
8.1.230.0110.00519.68
8.1.220.0080.00419.00
8.1.210.0050.00820.13
8.1.200.0080.00918.68
8.1.190.0080.00818.52
8.1.180.0100.00519.05
8.1.170.0040.00919.36
8.1.160.0100.00319.67
8.1.150.0050.00619.68
8.1.140.0070.00719.44
8.1.130.0040.00918.70
8.1.120.0050.00318.80
8.1.110.0080.00718.79
8.1.100.0070.00818.68
8.1.90.0000.00918.83
8.1.80.0050.00518.71
8.1.70.0070.00618.03
8.1.60.0130.00518.89
8.1.50.0100.00318.85
8.1.40.0070.00418.81
8.1.30.0050.01019.03
8.1.20.0070.00719.07
8.1.10.0070.00418.13
8.1.00.0100.00518.73
8.0.300.0030.00519.07
8.0.290.0050.00318.01
8.0.280.0050.00318.94
8.0.270.0040.00618.33
8.0.260.0030.00518.19
8.0.250.0050.00418.07
8.0.240.0020.00718.24
8.0.230.0050.00318.36
8.0.220.0040.00418.17
8.0.210.0050.00318.11
8.0.200.0050.00417.45
8.0.190.0120.00018.12
8.0.180.0070.00518.10
8.0.170.0060.00518.12
8.0.160.0080.00418.07
8.0.150.0120.00018.01
8.0.140.0110.00518.11
8.0.130.0080.00518.22
8.0.120.0080.00518.08
8.0.110.0090.00218.24
8.0.100.0080.00518.08
8.0.90.0100.00218.06
8.0.80.0030.00818.01
8.0.70.0120.00018.00
8.0.60.0100.00317.23
8.0.50.0060.00517.22
8.0.30.0110.00217.24
8.0.20.0050.00517.31
8.0.10.0050.00517.22
8.0.00.0120.00618.05
7.4.330.0060.00217.19
7.4.320.0030.00516.91
7.4.300.0050.00316.58
7.4.290.0120.00316.86
7.4.280.0100.00317.76
7.4.270.0050.00717.72
7.4.260.0070.00517.78
7.4.250.0140.00017.78
7.4.240.0070.00717.79
7.4.230.0110.00117.79
7.4.220.0040.00817.88
7.4.210.0120.00017.80
7.4.200.0090.00317.86
7.4.190.0090.00217.86
7.4.180.0120.00017.83
7.4.160.0040.00817.85
7.4.150.0040.00817.67
7.4.140.0070.00717.78
7.4.130.0170.00817.76
7.4.120.0140.00817.76
7.4.110.0160.00717.25
7.4.100.0200.00817.36
7.4.90.0130.00717.27
7.4.80.0200.00817.69
7.4.70.0170.00817.24
7.4.60.0200.00417.59
7.4.50.0200.00517.69
7.4.40.0200.00317.16
7.4.30.0240.00417.71
7.4.20.0210.00617.29
7.4.10.0160.01117.21
7.4.00.0120.00617.67
7.3.330.0050.00616.56
7.3.320.0110.00616.44
7.3.310.0090.00716.52
7.3.300.0110.00616.63
7.3.290.0160.00116.40
7.3.280.0130.00417.47
7.3.270.0110.00617.60
7.3.260.0200.00617.23
7.3.250.0200.00617.25
7.3.240.0160.00417.20
7.3.230.0150.00617.21
7.3.220.0130.00817.23
7.3.210.0250.00817.65
7.3.200.0190.00617.13
7.3.190.0200.00417.16
7.3.180.0220.00617.19
7.3.170.0220.00617.21
7.3.160.0250.00517.24
7.3.150.0180.01017.22
7.3.140.0200.00817.19
7.3.130.0240.00617.17
7.3.120.0220.00517.18
7.3.110.0190.00717.18
7.3.100.0160.01017.10
7.3.90.0200.00817.29
7.3.80.0220.00517.25
7.3.70.0200.00717.17
7.3.60.0170.00817.31
7.3.50.0150.01317.21
7.3.40.0230.00617.24
7.3.30.0230.00617.31
7.3.20.0210.01118.11
7.3.10.0180.01318.24
7.3.00.0190.00818.16

preferences:
49.63 ms | 401 KiB | 5 Q