3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Filter { // A constructor in PHP 4 and 5 function __construct(int $a) { echo $a; } } $o1 = new Filter(5); $o2 = new Filter('5');

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.0140.00018.43
8.3.60.0090.00616.86
8.3.50.0100.00821.86
8.3.40.0070.00718.92
8.3.30.0070.00718.80
8.3.20.0040.00420.16
8.3.10.0040.00421.77
8.3.00.0030.00519.38
8.2.180.0140.00016.75
8.2.170.0120.00622.96
8.2.160.0080.00519.46
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00617.75
8.2.120.0040.00426.35
8.2.110.0060.00319.15
8.2.100.0080.00317.84
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0030.00619.51
8.2.30.0070.00020.72
8.2.20.0030.00617.75
8.2.10.0050.00318.13
8.2.00.0020.00517.95
8.1.280.0070.00725.92
8.1.270.0060.00323.84
8.1.260.0070.00028.09
8.1.250.0030.00528.09
8.1.240.0070.00322.18
8.1.230.0110.00021.04
8.1.220.0000.00717.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0080.00018.30
8.1.160.0040.00422.01
8.1.150.0050.00218.70
8.1.140.0000.00819.51
8.1.130.0030.00317.50
8.1.120.0050.00317.39
8.1.110.0000.00717.32
8.1.100.0050.00317.43
8.1.90.0000.00717.42
8.1.80.0000.00817.36
8.1.70.0040.00417.26
8.1.60.0030.00617.58
8.1.50.0040.00417.54
8.1.40.0040.00417.57
8.1.30.0060.00317.68
8.1.20.0030.00617.48
8.1.10.0000.00817.58
8.1.00.0040.00417.54
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0040.00418.39
8.0.270.0030.00317.14
8.0.260.0030.00317.18
8.0.250.0040.00417.06
8.0.240.0030.00316.85
8.0.230.0000.00716.95
8.0.220.0050.00216.89
8.0.210.0070.00016.73
8.0.200.0060.00016.96
8.0.190.0040.00416.96
8.0.180.0050.00316.96
8.0.170.0080.00016.88
8.0.160.0000.00716.84
8.0.150.0080.00316.83
8.0.140.0000.01016.86
8.0.130.0030.00313.30
8.0.120.0000.00816.81
8.0.110.0000.00816.85
8.0.100.0000.00716.77
8.0.90.0070.00017.00
8.0.80.0110.01116.84
8.0.70.0040.00416.77
8.0.60.0000.00816.80
8.0.50.0030.00416.68
8.0.30.0130.01017.25
8.0.20.0100.00917.40
8.0.10.0040.00416.95
8.0.00.0080.01016.65
7.4.330.0020.00216.82
7.4.320.0000.00616.34
7.4.300.0030.00316.41
7.4.290.0030.00516.51
7.4.280.0000.00716.60
7.4.270.0040.00416.45
7.4.260.0070.00016.56
7.4.250.0070.00016.58
7.4.240.0030.00416.42
7.4.230.0000.00716.49
7.4.220.0110.01416.69
7.4.210.0100.00716.49
7.4.200.0000.00716.69
7.4.160.0090.00616.42
7.4.150.0190.03017.40
7.4.140.0100.01117.86
7.4.130.0100.00716.58
7.4.120.0110.01016.45
7.4.110.0110.00716.51
7.4.100.0090.00916.42
7.4.90.0110.00816.51
7.4.80.0130.01019.39
7.4.70.0080.01116.49
7.4.60.0120.00416.70
7.4.50.0070.00716.39
7.4.40.0040.01416.23
7.4.30.0100.00716.46
7.4.00.0070.00714.64
7.3.330.0000.00613.29
7.3.320.0050.00013.37
7.3.310.0000.00716.23
7.3.300.0000.00716.22
7.3.290.0090.00716.29
7.3.280.0100.00716.31
7.3.270.0080.00917.40
7.3.260.0030.01416.34
7.3.250.0110.00816.31
7.3.240.0090.01116.52
7.3.230.0130.00316.55
7.3.210.0070.01016.33
7.3.200.0090.00916.61
7.3.190.0070.01016.41
7.3.180.0060.00916.40
7.3.170.0030.01316.35
7.3.160.0150.00716.49
7.2.330.0130.00416.53
7.2.320.0080.01116.46
7.2.310.0080.00816.69
7.2.300.0050.01116.66
7.2.290.0110.00616.67
7.2.60.0040.01116.86
7.2.00.0030.00919.52
7.1.200.0000.01115.79
7.1.100.0040.00817.90
7.1.70.0060.00317.14
7.1.60.0030.01319.36
7.1.50.0070.01417.02
7.1.00.0000.08022.42
7.0.200.0000.01016.70
7.0.60.0070.08019.95
7.0.50.0100.06317.89
7.0.40.0100.07719.96
7.0.30.0200.04020.31
7.0.20.0300.08020.09
7.0.10.0030.04320.09
7.0.00.0000.06720.23
5.6.280.0070.04021.16
5.6.210.0100.08320.75
5.6.200.0070.04318.24
5.6.190.0100.06720.77
5.6.180.0470.05720.68
5.6.170.0300.07720.62
5.6.160.0000.08320.54
5.6.150.0000.04718.20
5.6.140.0030.08718.27
5.6.130.0030.07018.30
5.6.120.0100.06021.14
5.6.110.0130.08721.04
5.6.100.0070.04320.98
5.6.90.0070.05721.08
5.6.80.0100.07320.37
5.5.350.0200.07720.44
5.5.340.0100.07318.07
5.5.330.0070.07020.47
5.5.320.0200.04020.34
5.5.310.0170.04720.35
5.5.300.0100.08017.98
5.5.290.0100.04017.96
5.5.280.0000.07320.88
5.5.270.0170.03720.87
5.5.260.0130.07020.77
5.5.250.0100.04720.57
5.5.240.0230.03320.23

preferences:
58.25 ms | 401 KiB | 5 Q