3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dog { public static function bark() { return 'Woof!'; } } echo Dog::bark()."\n"; class Cat { public function purr() // NOT static { return 'purrrrrrrrr'; } } echo Cat::purr()."\n"; $cat = new Cat(); echo $cat->purr()."\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.0070.00716.50
8.3.50.0110.00722.05
8.3.40.0090.00618.79
8.3.30.0110.01118.84
8.3.20.0040.00420.20
8.3.10.0080.00020.38
8.3.00.0040.00423.51
8.2.180.0060.00918.50
8.2.170.0080.01118.95
8.2.160.0070.01322.96
8.2.150.0050.00325.66
8.2.140.0050.00324.66
8.2.130.0040.00422.13
8.2.120.0080.00026.35
8.2.110.0060.00320.99
8.2.100.0120.00017.84
8.2.90.0080.00019.17
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0040.00418.05
8.2.50.0000.00819.40
8.2.40.0040.00420.63
8.2.30.0040.00420.32
8.2.20.0050.00218.05
8.2.10.0050.00318.00
8.2.00.0040.00418.23
8.1.280.0030.01225.92
8.1.270.0050.00324.00
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00321.21
8.1.230.0070.00417.70
8.1.220.0080.00017.79
8.1.210.0090.00018.77
8.1.200.0030.00617.22
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0060.00318.70
8.1.150.0000.00820.25
8.1.140.0020.00519.51
8.1.130.0050.00217.26
8.1.120.0000.00717.47
8.1.110.0030.00617.36
8.1.100.0040.00417.43
8.1.90.0040.00417.39
8.1.80.0050.00217.33
8.1.70.0000.00817.41
8.1.60.0040.00417.43
8.1.50.0030.00617.32
8.1.40.0000.00817.41
8.1.30.0080.00017.49
8.1.20.0000.00817.50
8.1.10.0050.00217.55
8.1.00.0030.00517.33
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0050.00318.35
8.0.270.0000.00716.88
8.0.260.0000.00616.83
8.0.250.0070.00016.91
8.0.240.0000.00717.03
8.0.230.0000.00817.00
8.0.220.0000.00816.96
8.0.210.0070.00016.83
8.0.200.0030.00316.88
8.0.190.0000.00717.08
8.0.180.0080.00016.84
8.0.170.0050.00217.00
8.0.160.0070.00016.95
8.0.150.0000.00716.93
8.0.140.0020.00516.93
8.0.130.0000.00613.36
8.0.120.0080.00016.89
8.0.110.0000.00716.99
8.0.100.0040.00416.97
8.0.90.0070.00016.86
8.0.80.0060.00916.88
8.0.70.0000.00716.87
8.0.60.0040.00416.76
8.0.50.0000.00716.74
8.0.30.0110.00817.04
8.0.20.0100.00917.40
8.0.10.0070.00017.02
8.0.00.0090.00916.54
7.4.330.0050.00015.55
7.4.320.0060.00016.55
7.4.300.0050.00216.59
7.4.290.0030.00316.63
7.4.280.0080.00016.36
7.4.270.0070.00016.50
7.4.260.0030.00516.61
7.4.250.0030.00316.54
7.4.240.0000.00716.42
7.4.230.0030.00316.58
7.4.220.0040.02216.69
7.4.210.0140.00016.45
7.4.200.0040.00416.35
7.4.160.0100.00616.64
7.4.150.0150.00917.40
7.4.140.0070.01417.86
7.4.130.0100.01016.46
7.4.120.0150.00816.53
7.4.110.0120.00616.68
7.4.100.0250.00016.66
7.4.90.0030.01316.37
7.4.80.0060.01019.39
7.4.70.0130.00316.32
7.4.60.0100.00716.46
7.4.50.0030.01216.38
7.4.40.0070.00816.65
7.4.30.0180.00716.52
7.4.00.0070.01014.87
7.3.330.0000.00713.20
7.3.320.0000.00613.36
7.3.310.0070.00016.42
7.3.300.0030.00316.36
7.3.290.0070.00916.33
7.3.280.0090.00916.38
7.3.270.0140.00317.40
7.3.260.0120.00516.29
7.3.250.0090.00916.33
7.3.240.0050.01116.51
7.3.230.0150.00616.54
7.3.210.0120.00416.34
7.3.200.0120.00416.61
7.3.190.0060.01016.48
7.3.180.0170.00016.31
7.3.170.0140.00316.45
7.3.160.0100.00616.32
7.2.330.0070.01016.41
7.2.320.0040.01316.41
7.2.310.0150.00916.73
7.2.300.0100.00716.50
7.2.290.0130.00316.69
7.2.60.0140.00016.73
7.2.00.0100.00319.25
7.1.200.0000.00815.75
7.1.100.0060.00817.83
7.1.70.0000.00716.96
7.1.60.0000.01116.87
7.1.50.0150.00916.86
7.1.30.0330.06738.32
7.1.20.0170.08738.33
7.1.10.4330.08720.41
7.1.00.0270.05322.31
7.0.200.0030.01316.71
7.0.170.0330.05321.85
7.0.160.3400.08020.04
7.0.150.0100.07321.89
7.0.140.0200.05721.84
7.0.130.0170.06721.89
7.0.120.0130.05721.75
7.0.110.0100.06021.93
7.0.100.0200.05321.89
7.0.90.0130.05721.83
7.0.80.0030.07721.87
7.0.70.0100.06721.85
7.0.60.0030.07321.97
7.0.50.0270.05021.94
7.0.40.0070.06021.86
7.0.30.0300.04721.86
7.0.20.0200.06321.80
7.0.10.0070.07022.03
7.0.00.0200.06721.86

preferences:
52.07 ms | 401 KiB | 5 Q