3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Shirt { public function test() { return "Shirt"; } } class Sweater extends Shirt { public function test() { return "Sweater"; } } $shirt = new Shirt(); output_shirt($shirt); function output_shirt(Sweater $shirt) { echo $shirt->test(); }

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.70.0100.00716.75
8.3.60.0170.00316.88
8.3.50.0050.01421.86
8.3.40.0140.00718.74
8.3.30.0120.00918.80
8.3.20.0040.00419.96
8.3.10.0000.00821.74
8.3.00.0040.01119.25
8.2.180.0070.01025.92
8.2.170.0090.00922.96
8.2.160.0030.01020.39
8.2.150.0040.00424.18
8.2.140.0080.00424.66
8.2.130.0040.00417.63
8.2.120.0080.00026.35
8.2.110.0030.00619.32
8.2.100.0110.00317.50
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0040.00419.34
8.2.30.0070.00020.61
8.2.20.0040.00417.70
8.2.10.0000.00817.95
8.2.00.0000.00717.99
8.1.280.0140.00425.92
8.1.270.0090.00023.81
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0090.00023.95
8.1.230.0090.00317.64
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0080.00017.23
8.1.180.0030.00618.10
8.1.170.0080.00018.66
8.1.160.0000.00721.95
8.1.150.0000.00718.88
8.1.140.0030.00519.43
8.1.130.0040.00418.74
8.1.120.0000.00717.45
8.1.110.0000.00717.30
8.1.100.0040.00417.42
8.1.90.0030.00617.29
8.1.80.0000.00817.46
8.1.70.0050.00317.33
8.1.60.0040.00417.62
8.1.50.0040.00417.54
8.1.40.0040.00717.52
8.1.30.0060.00317.70
8.1.20.0040.00417.46
8.1.10.0070.00017.64
8.1.00.0030.00917.46
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00818.31
8.0.270.0000.00717.20
8.0.260.0030.00318.30
8.0.250.0030.00316.89
8.0.240.0000.00817.00
8.0.230.0080.00016.98
8.0.220.0000.00816.81
8.0.210.0030.00316.81
8.0.200.0000.00616.85
8.0.190.0000.00816.80
8.0.180.0030.00616.82
8.0.170.0040.00416.96
8.0.160.0070.00016.95
8.0.150.0000.00816.95
8.0.140.0000.00716.84
8.0.130.0000.00813.32
8.0.120.0040.00416.86
8.0.110.0000.00716.86
8.0.100.0040.00416.94
8.0.90.0040.00416.89
8.0.80.0040.01116.84
8.0.70.0000.00716.76
8.0.60.0000.00716.72
8.0.50.0040.00416.89
8.0.30.0150.00617.13
8.0.20.0090.01017.40
8.0.10.0040.00416.89
8.0.00.0100.00816.81
7.4.330.0000.00516.71
7.4.320.0000.00716.59
7.4.300.0060.00016.59
7.4.290.0000.00616.63
7.4.280.0070.00016.62
7.4.270.0040.00416.50
7.4.260.0060.00616.52
7.4.250.0080.00016.55
7.4.240.0030.00316.57
7.4.230.0040.00416.64
7.4.220.0160.00616.44
7.4.210.0100.00716.50
7.4.200.0040.00416.51
7.4.160.0030.01316.66
7.4.150.0100.00717.40
7.4.140.0090.01217.86
7.4.130.0080.01216.51
7.4.120.0100.00816.61
7.4.110.0090.00916.56
7.4.100.0090.01216.39
7.4.90.0090.00916.55
7.4.80.0030.01419.39
7.4.70.0100.00716.38
7.4.60.0000.01616.59
7.4.50.0050.00516.68
7.4.40.0130.00316.63
7.4.30.0120.01216.61
7.4.00.0120.00514.77
7.3.330.0060.00013.09
7.3.320.0000.00513.28
7.3.310.0030.00316.36
7.3.300.0030.00316.17
7.3.290.0090.00516.32
7.3.280.0080.00816.27
7.3.270.0090.00917.40
7.3.260.0070.01016.43
7.3.250.0090.00716.41
7.3.240.0110.00816.38
7.3.230.0100.00616.51
7.3.210.0090.01216.57
7.3.200.0120.00616.32
7.3.190.0120.00916.29
7.3.180.0120.00616.46
7.3.170.0140.00616.47
7.3.160.0110.00516.49
7.3.120.0060.00714.69
7.3.110.0070.01014.72
7.3.100.0070.00714.95
7.3.90.0030.00614.76
7.3.80.0090.00714.90
7.3.70.0050.01014.54
7.3.60.0040.01014.79
7.3.50.0070.00614.85
7.3.40.0060.00514.77
7.3.30.0060.00714.43
7.3.20.0050.01016.64
7.3.10.0080.00416.76
7.3.00.0040.01216.57
7.2.330.0070.01016.47
7.2.320.0080.00916.40
7.2.310.0150.00016.61
7.2.300.0090.00616.27
7.2.290.0100.01016.37
7.2.250.0160.00315.12
7.2.240.0030.01415.05
7.2.230.0080.00815.07
7.2.220.0060.00814.98
7.2.210.0100.00614.83
7.2.200.0080.00715.04
7.2.190.0050.00914.75
7.2.180.0040.00914.96
7.2.170.0100.00314.96
7.2.160.0000.01714.88
7.2.150.0030.00616.98
7.2.140.0060.00316.71
7.2.130.0040.00716.80
7.2.120.0000.00916.96
7.2.110.0030.00717.00
7.2.100.0040.00716.86
7.2.90.0000.00916.90
7.2.80.0040.00616.79
7.2.70.0000.00916.74
7.2.60.0070.00916.74
7.2.50.0070.01116.82
7.2.40.0000.00916.54
7.2.30.0070.00716.80
7.2.20.0030.01016.85
7.2.10.0060.00616.87
7.2.00.0090.00418.21
7.1.330.0130.00115.69
7.1.320.0020.00915.75
7.1.310.0060.00815.50
7.1.300.0020.01315.71
7.1.290.0030.00915.81
7.1.280.0030.00615.57
7.1.270.0040.00915.53
7.1.260.0060.00315.73
7.1.250.0000.00815.50
7.1.200.0000.01115.69
7.1.100.0070.01118.03
7.1.70.0000.00716.96
7.1.60.0160.00919.36
7.1.50.0100.01316.82
7.1.00.0000.08022.54
7.0.200.0000.00816.82
7.0.60.0070.07020.03
7.0.50.0030.06717.95
7.0.40.0070.04319.96
7.0.30.0270.08320.30
7.0.20.0300.08020.26
7.0.10.0070.09020.08
7.0.00.0070.05720.08
5.6.280.0030.07021.13
5.6.210.0070.04020.55
5.6.200.0170.06018.16
5.6.190.0030.07020.64
5.6.180.0470.06720.61
5.6.170.0230.07320.44
5.6.160.0000.04320.54
5.6.150.0030.07718.29
5.6.140.0100.07718.13
5.6.130.0070.07018.11
5.6.120.0030.04721.12
5.6.110.0030.08721.10
5.6.100.0000.08321.07
5.6.90.0030.04021.00
5.6.80.0000.04320.52
5.5.350.0070.04720.43
5.5.340.0100.08017.95
5.5.330.0030.08320.29
5.5.320.0030.05320.42
5.5.310.0130.06320.19
5.5.300.0130.07717.96
5.5.290.0030.04017.98
5.5.280.0070.04320.82
5.5.270.0070.04020.73
5.5.260.0070.08020.68
5.5.250.0170.08020.62
5.5.240.0200.05320.26

preferences:
62.81 ms | 401 KiB | 5 Q