3v4l.org

run code in 300+ PHP versions simultaneously
<?php class weasel { } function show1(int $value) { var_dump($value); } function show2(weasel $value) { var_dump($value); } try { show1(new weasel()); } catch (throwable $e) { echo $e->getMessage(), "\n"; } try { show2(10); } catch (throwable $e) { echo $e->getMessage(), "\n"; }

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.0090.00916.49
8.3.50.0090.01221.99
8.3.40.0140.00718.65
8.3.30.0210.00018.77
8.3.20.0080.00620.30
8.3.10.0170.00023.70
8.3.00.0040.00419.25
8.2.180.0100.01016.38
8.2.170.0090.00622.96
8.2.160.0170.00320.39
8.2.150.0130.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00420.52
8.2.120.0040.00426.35
8.2.110.0000.00921.00
8.2.100.0110.00017.91
8.2.90.0050.00318.82
8.2.80.0050.00317.97
8.2.70.0030.00517.63
8.2.60.0050.00717.93
8.2.50.0000.01118.07
8.2.40.0060.00319.39
8.2.30.0000.00720.73
8.2.20.0030.00917.80
8.2.10.0000.00717.87
8.2.00.0000.00717.98
8.1.280.0040.01125.92
8.1.270.0110.00723.91
8.1.260.0080.00028.09
8.1.250.0160.00328.09
8.1.240.0090.00022.19
8.1.230.0080.00319.02
8.1.220.0000.00817.76
8.1.210.0060.00318.77
8.1.200.0100.00017.09
8.1.190.0000.00717.70
8.1.180.0000.00818.10
8.1.170.0050.00318.59
8.1.160.0000.00821.95
8.1.150.0000.00718.74
8.1.140.0000.00817.45
8.1.130.0000.00717.63
8.1.120.0050.00217.45
8.1.110.0030.00317.43
8.1.100.0000.01017.35
8.1.90.0050.00217.40
8.1.80.0040.00417.39
8.1.70.0000.00717.33
8.1.60.0000.00817.58
8.1.50.0030.00617.53
8.1.40.0070.00417.58
8.1.30.0080.00017.64
8.1.20.0040.00417.53
8.1.10.0040.00417.61
8.1.00.0100.00017.48
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0070.00018.32
8.0.270.0030.00316.80
8.0.260.0030.00317.16
8.0.250.0000.00716.99
8.0.240.0030.00317.03
8.0.230.0000.00716.96
8.0.220.0040.00416.82
8.0.210.0040.00416.77
8.0.200.0040.00416.97
8.0.190.0000.00716.94
8.0.180.0040.00416.90
8.0.170.0050.00316.81
8.0.160.0050.00217.00
8.0.150.0000.00716.77
8.0.140.0070.00016.73
8.0.130.0030.00313.36
8.0.120.0030.00516.77
8.0.110.0040.00416.91
8.0.100.0040.00416.83
8.0.90.0050.00316.77
8.0.80.0030.01316.84
8.0.70.0000.00716.93
8.0.60.0000.00716.93
8.0.50.0040.00416.76
8.0.30.0110.00817.09
8.0.20.0110.00917.40
8.0.10.0040.00416.87
8.0.00.0070.01316.85
7.4.330.0030.00316.84
7.4.320.0030.00316.44
7.4.300.0030.00316.53
7.4.290.0000.00716.64
7.4.280.0000.00716.62
7.4.270.0000.00716.41
7.4.260.0030.00316.49
7.4.250.0040.00416.56
7.4.240.0000.00816.58
7.4.230.0030.00316.59
7.4.220.0100.01016.54
7.4.210.0130.00416.63
7.4.200.0070.00016.41
7.4.160.0060.00916.44
7.4.150.0100.00717.40
7.4.140.0160.00517.86
7.4.130.0130.00616.54
7.4.120.0080.01316.48
7.4.110.0110.00616.34
7.4.100.0160.00616.62
7.4.90.0100.00616.57
7.4.80.0070.01119.39
7.4.70.0140.00316.38
7.4.60.0090.00916.67
7.4.50.0070.00716.45
7.4.40.0100.01216.42
7.4.30.0070.01116.44
7.4.00.0090.00614.91
7.3.330.0050.00013.29
7.3.320.0060.00013.29
7.3.310.0000.00716.19
7.3.300.0000.00716.30
7.3.290.0090.00616.28
7.3.280.0080.01016.31
7.3.270.0100.00617.40
7.3.260.0180.00316.33
7.3.250.0080.00916.48
7.3.240.0070.01216.35
7.3.230.0160.00016.39
7.3.210.0030.01916.43
7.3.200.0130.00716.19
7.3.190.0100.00616.32
7.3.180.0040.01116.44
7.3.170.0120.01116.35
7.3.160.0100.01016.39
7.3.120.0000.01814.82
7.3.110.0100.00714.50
7.3.100.0100.00714.98
7.3.90.0090.00614.83
7.3.80.0000.00914.70
7.3.70.0090.00614.90
7.3.60.0030.01314.85
7.3.50.0120.00314.86
7.3.40.0090.00614.77
7.3.30.0090.00614.89
7.3.20.0100.00316.42
7.3.10.0070.00716.61
7.3.00.0050.01016.73
7.2.330.0030.01416.62
7.2.320.0060.01116.59
7.2.310.0060.01616.62
7.2.300.0070.01416.55
7.2.290.0140.00316.46
7.2.250.0100.01015.06
7.2.240.0120.00914.93
7.2.230.0090.00615.06
7.2.220.0040.00814.90
7.2.210.0060.00614.83
7.2.200.0030.01315.00
7.2.190.0110.00015.13
7.2.180.0100.01014.94
7.2.170.0070.00715.09
7.2.130.0070.00716.65
7.2.120.0100.00716.43
7.2.110.0040.00816.84
7.2.100.0060.00916.73
7.2.90.0040.00717.01
7.2.80.0000.01016.81
7.2.70.0030.00916.61
7.2.60.0070.00916.87
7.2.50.0040.01416.79
7.2.40.0090.00616.67
7.2.30.0130.00616.73
7.2.20.0140.00316.46
7.2.10.0170.00316.73
7.2.00.0040.00718.01
7.1.330.0100.00315.65
7.1.320.0060.00915.71
7.1.310.0000.01115.88
7.1.300.0040.00815.87
7.1.290.0080.00815.43
7.1.280.0070.00715.64
7.1.270.0040.01115.84
7.1.260.0090.00315.73
7.1.250.0030.00915.42
7.1.240.0040.00815.60
7.1.230.0110.00615.74
7.1.220.0030.01015.65
7.1.210.0070.00415.42
7.1.200.0120.00315.67
7.1.190.0040.00715.39
7.1.180.0120.00015.17
7.1.170.0000.01215.38
7.1.160.0000.01315.59
7.1.150.0030.01015.71
7.1.140.0160.00315.63
7.1.130.0080.00415.74
7.1.120.0060.00615.61
7.1.110.0100.01015.50
7.1.100.0320.00615.90
7.1.90.0170.00015.52
7.1.80.0060.00915.71
7.1.70.0050.00816.34
7.1.60.0070.01217.42
7.1.50.0070.01116.09
7.1.40.0120.00415.61
7.1.30.0130.00015.63
7.1.20.0120.00315.55
7.1.10.0130.00015.58
7.1.00.0050.04018.93
7.0.330.0030.01015.27
7.0.320.0040.00415.39
7.0.310.0060.00315.21
7.0.300.0040.00815.12
7.0.290.0030.01015.10
7.0.280.0000.01415.10
7.0.270.0070.00415.14
7.0.260.0040.00815.17
7.0.250.0080.00315.01
7.0.240.0000.00915.14
7.0.230.0000.00915.24
7.0.220.0070.00715.01
7.0.210.0070.00714.93
7.0.200.0070.00316.08
7.0.190.0110.00415.28
7.0.180.0070.00314.96
7.0.170.0000.01115.22
7.0.160.0000.01115.31
7.0.150.0070.00715.00
7.0.140.0080.00815.32
7.0.130.0000.01314.91
7.0.120.0040.01115.24
7.0.110.0040.00415.18
7.0.100.0050.00915.15
7.0.90.0050.00515.37
7.0.80.0060.00615.14
7.0.70.0030.01015.36
7.0.60.0120.03717.56
7.0.50.0020.04216.60
7.0.40.0060.03816.65
7.0.30.0150.02316.61
7.0.20.0170.03116.76
7.0.10.0040.03116.76
7.0.00.0080.02716.65
5.6.380.0060.00314.32
5.6.370.0040.00814.42
5.6.360.0120.00314.13
5.6.350.0000.01414.29
5.6.340.0100.00314.30
5.6.330.0000.01314.40
5.6.320.0040.01114.21
5.6.310.0000.00914.38
5.6.300.0030.00914.39
5.6.290.0030.00613.97
5.6.280.0090.03517.54
5.6.270.0030.00714.14
5.6.260.0110.00314.17
5.6.250.0030.00614.28
5.6.240.0030.01014.19
5.6.230.0060.00614.11
5.6.220.0070.00313.97
5.6.210.0070.04317.30
5.6.200.0020.03915.99
5.6.190.0020.02817.23
5.6.180.0150.03317.25
5.6.170.0130.03317.16
5.6.160.0030.03217.27
5.6.150.0060.03816.30
5.6.140.0070.03516.11
5.6.130.0070.03516.09
5.6.120.0070.02017.52
5.6.110.0100.04217.65
5.6.100.0030.04017.46
5.6.90.0050.05117.36
5.6.80.0110.01717.28
5.6.70.0040.00713.87
5.6.60.0000.01013.99
5.6.50.0070.00714.13
5.6.40.0100.00013.89
5.6.30.0070.00714.19
5.6.20.0040.00414.14
5.6.10.0070.00313.86
5.6.00.0050.00213.89
5.5.380.0030.00310.90
5.5.370.0000.00510.90
5.5.360.0060.00510.90
5.5.350.0140.03715.80
5.5.340.0010.04014.44
5.5.330.0050.04015.63
5.5.320.0070.04015.86
5.5.310.0080.02515.76
5.5.300.0100.04114.52
5.5.290.0070.02514.42
5.5.280.0060.02615.87
5.5.270.0070.02315.85
5.5.260.0070.02915.88
5.5.250.0050.04315.81
5.5.240.0130.04015.53
5.5.230.0000.00610.90
5.5.220.0040.00410.95
5.5.210.0000.01110.90
5.5.200.0030.00910.90
5.5.190.0060.00010.91
5.5.180.0000.01210.90
5.5.170.0040.00410.90
5.5.160.0090.00010.90
5.5.150.0040.00410.93
5.5.140.0030.01010.90
5.5.130.0050.00210.90
5.5.120.0050.00310.95
5.5.110.0080.00310.90
5.5.100.0000.00610.94
5.5.90.0060.00610.90
5.5.80.0030.00610.90
5.5.70.0040.00410.90
5.5.60.0060.00310.90
5.5.50.0050.00210.90
5.5.40.0060.00310.90
5.5.30.0040.00810.90
5.5.20.0000.01010.92
5.5.10.0000.00710.90
5.5.00.0060.00210.93

preferences:
39.72 ms | 401 KiB | 5 Q