3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Courier { public $name; public $home_country; public function __construct($name, $home_country) { $this->name = $name; $this->home_country = $home_country; return true; } public function __toString() { return $this->name . '(' . $this->home_country . ')'; } } $myCourier = new Courier('abc', 'USA'); var_dump($myCourier); echo serialize($myCourier);

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.0110.01118.43
8.3.50.0100.00922.09
8.3.40.0120.00318.71
8.3.30.0070.00718.97
8.3.20.0070.00020.25
8.3.10.0000.00821.80
8.3.00.0040.00419.19
8.2.180.0130.00618.16
8.2.170.0120.00622.96
8.2.160.0090.00422.27
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0140.00026.16
8.2.120.0080.00019.43
8.2.110.0070.00320.41
8.2.100.0080.00417.91
8.2.90.0100.00019.06
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0060.00617.93
8.2.50.0000.00818.07
8.2.40.0080.00020.01
8.2.30.0000.00818.01
8.2.20.0040.00417.60
8.2.10.0000.00718.02
8.2.00.0060.00317.75
8.1.280.0070.00725.92
8.1.270.0060.00318.70
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0070.01123.73
8.1.230.0040.00823.93
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0090.00017.25
8.1.190.0000.00917.13
8.1.180.0050.00318.10
8.1.170.0040.00718.50
8.1.160.0040.00421.99
8.1.150.0070.00018.90
8.1.140.0000.00717.45
8.1.130.0000.00717.86
8.1.120.0000.00717.46
8.1.110.0020.00517.49
8.1.100.0070.00017.30
8.1.90.0030.00417.29
8.1.80.0000.00817.46
8.1.70.0070.00017.36
8.1.60.0030.00617.61
8.1.50.0000.00817.41
8.1.40.0040.00417.54
8.1.30.0030.00617.60
8.1.20.0050.00217.68
8.1.10.0040.00417.54
8.1.00.0000.00817.55
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0000.00717.30
8.0.260.0000.00717.22
8.0.250.0050.00216.96
8.0.240.0030.00317.04
8.0.230.0070.00016.89
8.0.220.0000.00616.93
8.0.210.0070.00016.77
8.0.200.0070.00016.95
8.0.190.0040.00416.95
8.0.180.0000.00816.91
8.0.170.0050.00316.89
8.0.160.0000.00716.92
8.0.150.0040.00416.81
8.0.140.0030.00716.85
8.0.130.0060.00013.25
8.0.120.0040.00416.76
8.0.110.0080.00016.85
8.0.100.0090.00016.84
8.0.90.0000.00716.85
8.0.80.0070.01116.95
8.0.70.0050.00317.00
8.0.60.0040.00416.90
8.0.50.0070.00016.80
8.0.30.0090.01316.75
8.0.20.0140.00917.40
8.0.10.0000.00816.96
8.0.00.0080.00916.71
7.4.330.0060.00015.03
7.4.320.0070.00016.42
7.4.300.0000.00616.65
7.4.290.0040.00416.56
7.4.280.0000.00716.41
7.4.270.0030.00316.61
7.4.260.0030.00616.48
7.4.250.0040.00416.59
7.4.240.0000.00716.56
7.4.230.0070.00016.69
7.4.220.0120.00616.52
7.4.210.0120.00316.61
7.4.200.0000.00716.59
7.4.160.0140.00716.53
7.4.150.0090.00917.40
7.4.140.0060.01417.86
7.4.130.0100.00716.53
7.4.120.0090.01316.49
7.4.110.0050.01116.29
7.4.100.0100.00716.60
7.4.90.0100.00716.51
7.4.80.0100.01019.39
7.4.70.0110.01116.36
7.4.60.0110.00616.50
7.4.50.0000.00416.61
7.4.40.0050.01116.47
7.4.30.0160.00716.17
7.4.10.0100.00614.98
7.4.00.0090.00814.80
7.3.330.0000.00513.09
7.3.320.0050.00013.26
7.3.310.0000.00716.28
7.3.300.0060.00016.24
7.3.290.0070.01016.18
7.3.280.0080.00716.23
7.3.270.0090.00817.40
7.3.260.0100.01316.34
7.3.250.0110.00816.28
7.3.240.0120.00716.22
7.3.230.0090.01216.39
7.3.210.0170.00016.40
7.3.200.0150.00719.39
7.3.190.0130.00616.39
7.3.180.0090.00916.23
7.3.170.0030.01516.28
7.3.160.0070.01316.18
7.3.130.0030.01614.76
7.3.120.0080.01014.63
7.3.110.0050.01314.67
7.3.100.0050.00814.61
7.3.90.0060.00814.45
7.3.80.0050.01114.92
7.3.70.0060.00814.50
7.3.60.0020.01214.84
7.3.50.0080.00614.82
7.3.40.0050.01114.61
7.3.30.0040.01114.55
7.3.20.0040.00716.46
7.3.10.0070.00416.44
7.3.00.0050.01116.53
7.2.330.0070.01016.80
7.2.320.0150.00316.43
7.2.310.0030.01316.70
7.2.300.0110.00616.62
7.2.290.0030.01516.75
7.2.260.0060.00615.16
7.2.250.0060.01314.82
7.2.240.0050.01314.81
7.2.230.0030.01215.09
7.2.220.0030.00814.99
7.2.210.0080.00314.88
7.2.200.0080.00714.92
7.2.190.0030.01115.12
7.2.180.0070.00715.13
7.2.170.0050.00614.99
7.2.160.0090.00614.96
7.2.150.0060.00617.04
7.2.140.0060.00916.66
7.2.130.0040.01116.73
7.2.120.0030.01516.77
7.2.110.0080.00417.00
7.2.100.0110.00316.70
7.2.90.0040.01117.03
7.2.80.0070.00716.85
7.2.70.0000.01416.41
7.2.60.0040.01416.94
7.2.50.0090.00616.71
7.2.40.0060.00316.95
7.2.30.0100.00716.97
7.2.20.0070.01017.12
7.2.10.0030.00717.08
7.2.00.0070.00818.15
7.1.330.0050.01215.91
7.1.320.0090.00515.59
7.1.310.0050.00815.71
7.1.300.0010.01215.72
7.1.290.0070.00515.78
7.1.280.0050.01015.67
7.1.270.0070.00715.66
7.1.260.0070.00715.76
7.1.250.0060.00915.72
7.1.240.0000.01315.59
7.1.230.0090.00315.91
7.1.220.0070.00715.77
7.1.210.0030.01015.93
7.1.200.0000.01315.75
7.1.190.0040.01115.81
7.1.180.0100.00315.78
7.1.170.0080.00315.87
7.1.160.0000.01115.70
7.1.150.0100.00615.95
7.1.140.0060.00615.73
7.1.130.0070.00715.55
7.1.120.0080.00415.82
7.1.110.0090.00615.73
7.1.100.0060.01116.70
7.1.90.0030.00615.88
7.1.80.0040.00415.55
7.1.70.0020.01116.60
7.1.60.0080.00817.52
7.1.50.0100.00916.24
7.1.40.0120.00315.77
7.1.30.0060.00915.82
7.1.20.0090.00915.70
7.1.10.0030.01415.67
7.1.00.0030.04219.05
7.0.330.0060.00315.36
7.0.320.0150.00015.54
7.0.310.0030.00515.42
7.0.300.0060.00615.42
7.0.290.0110.00015.17
7.0.280.0100.00315.14
7.0.270.0070.00715.41
7.0.260.0000.01115.41
7.0.250.0040.01115.44
7.0.240.0060.00315.54
7.0.230.0040.00815.36
7.0.220.0030.01215.18
7.0.210.0060.00915.23
7.0.200.0070.00715.96
7.0.190.0030.00615.39
7.0.180.0120.00315.21
7.0.170.0110.00315.39
7.0.160.0000.01415.47
7.0.150.0100.00315.30
7.0.140.0050.03418.78
7.0.130.0030.00715.50
7.0.120.0030.01015.41
7.0.110.0070.00415.29
7.0.100.0000.01415.39
7.0.90.0100.00615.46
7.0.80.0090.00615.32
7.0.70.0030.01015.39
7.0.60.0130.04117.56
7.0.50.0070.04016.67
7.0.40.0070.03816.78
7.0.30.0140.03116.83
7.0.20.0180.04016.80
7.0.10.0050.04616.80
7.0.00.0030.03516.84
5.6.400.0000.01014.44
5.6.390.0120.00614.17
5.6.380.0090.00914.51
5.6.370.0030.00614.52
5.6.360.0040.00414.51
5.6.350.0110.00314.72
5.6.340.0130.00314.20
5.6.330.0060.00614.27
5.6.320.0070.00714.21
5.6.310.0030.00714.34
5.6.300.0070.00714.55
5.6.290.0000.01714.41
5.6.280.0010.04117.47
5.6.270.0090.00914.51
5.6.260.0030.00914.26
5.6.250.0030.00614.34
5.6.240.0090.00014.45
5.6.230.0030.01014.24
5.6.220.0060.00914.38
5.6.210.0030.02517.56
5.6.200.0160.03716.32
5.6.190.0070.04117.41
5.6.180.0130.03717.34
5.6.170.0180.03317.61
5.6.160.0030.04816.04
5.6.150.0100.03516.24
5.6.140.0070.03216.35
5.6.130.0060.02216.32
5.6.120.0060.02617.58
5.6.110.0120.04517.73
5.6.100.0130.03617.60
5.6.90.0100.04317.86
5.6.80.0020.04517.22
5.6.70.0000.01414.07
5.6.60.0000.01614.21
5.6.50.0100.00314.31
5.6.40.0000.01614.02
5.6.30.0100.00314.16
5.6.20.0090.00314.47
5.6.10.0060.00614.15
5.6.00.0030.01114.11
5.5.380.0070.01014.19
5.5.370.0090.00614.46
5.5.360.0070.00714.23
5.5.350.0090.03217.25
5.5.340.0080.02016.21
5.5.330.0070.02717.20
5.5.320.0170.02617.26
5.5.310.0150.03417.42
5.5.300.0060.02316.21
5.5.290.0080.04616.34
5.5.280.0150.03917.42
5.5.270.0110.04017.59
5.5.260.0090.04417.62
5.5.250.0080.04517.37
5.5.240.1680.02317.33
5.5.230.0040.00814.24
5.5.220.0040.00714.17
5.5.210.0110.00413.76
5.5.200.0000.00914.40
5.5.190.0000.01514.01
5.5.180.0000.01014.00
5.5.170.0090.00614.35
5.5.160.0080.00814.36
5.5.150.0070.01014.12
5.5.140.0040.01114.11
5.5.130.0090.00313.95
5.5.120.0120.00414.28
5.5.110.0030.00914.29
5.5.100.0060.00914.10
5.5.90.0000.00914.06
5.5.80.0000.00914.49
5.5.70.0000.00914.22
5.5.60.0070.00714.02
5.5.50.0030.00714.23
5.5.40.0030.00514.05
5.5.30.0040.00714.24
5.5.20.0100.00614.39
5.5.10.0070.00713.83
5.5.00.0070.01313.98
5.4.450.0430.03315.44
5.4.440.0220.03315.40
5.4.430.0080.03015.28
5.4.420.0050.03215.25
5.4.410.0100.02715.35
5.4.400.0070.02915.17
5.4.390.0110.03814.80
5.4.380.0110.03314.72
5.4.370.0120.03014.81
5.4.360.0100.02814.80
5.4.350.0070.03414.78
5.4.340.0120.02814.95
5.4.330.0030.00710.86
5.4.320.0100.03115.05
5.4.310.0130.03014.77
5.4.300.0080.03114.85
5.4.290.0120.02814.81
5.4.280.0140.02514.78
5.4.270.0030.03814.77
5.4.260.0100.03014.89
5.4.250.0090.03014.79
5.4.240.0110.02814.77
5.4.230.0130.02814.84
5.4.220.0080.03214.85
5.4.210.0150.02514.56
5.4.200.0080.03313.87
5.4.190.0050.03514.81
5.4.180.0080.03114.71
5.4.170.0140.02914.91
5.4.160.0120.03414.86
5.4.150.0150.02914.89
5.4.140.0100.03013.78
5.4.130.0070.03313.48
5.4.120.0100.03213.71
5.4.110.0140.02513.64
5.4.100.0120.02813.68
5.4.90.0080.02813.65
5.4.80.0130.02513.63
5.4.70.0150.02313.70
5.4.60.0130.02613.80
5.4.50.0120.02513.55
5.4.40.0140.02513.65
5.4.30.0110.02613.66
5.4.20.0100.02813.75
5.4.10.0110.02513.63
5.4.00.0120.02813.39
5.3.290.0170.05714.65
5.3.280.0230.04714.73
5.3.270.0200.07014.63
5.3.260.0170.06014.63
5.3.250.0230.05314.66
5.3.240.0130.05314.66
5.3.230.0270.05714.81
5.3.220.0230.04714.63
5.3.210.0130.06014.62
5.3.200.0200.05714.71
5.3.190.0230.04714.63
5.3.180.0170.05314.71
5.3.170.0230.05014.63
5.3.160.0230.05314.60
5.3.150.0230.04314.75
5.3.140.0230.05314.69
5.3.130.0270.05014.59
5.3.120.0270.04314.61
5.3.110.0170.06014.68
5.3.100.0200.04714.21
5.3.90.0170.06314.06
5.3.80.0100.05714.05
5.3.70.0200.04714.00
5.3.60.0130.05313.98
5.3.50.0170.05013.99
5.3.40.0130.05714.05
5.3.30.0100.05313.90
5.3.20.0200.04713.91
5.3.10.0170.04313.86
5.3.00.0170.04713.71
5.2.170.0100.04311.17
5.2.160.0070.04711.20
5.2.150.0070.04711.36
5.2.140.0130.04011.26
5.2.130.0200.03311.18
5.2.120.0130.05011.13
5.2.110.0130.04011.16
5.2.100.0230.04311.19
5.2.90.0170.03311.18
5.2.80.0130.04311.12
5.2.70.0070.04711.32
5.2.60.0200.04311.07
5.2.50.0130.05711.01
5.2.40.0000.05011.07
5.2.30.0200.03311.18
5.2.20.0070.04311.02
5.2.10.0030.04310.99
5.2.00.0030.04710.85
5.1.60.0300.02710.03
5.1.50.0100.03310.19
5.1.40.0100.03310.02
5.1.30.0100.05310.39
5.1.20.0200.04310.46
5.1.10.0100.04010.12
5.1.00.0170.04310.12
5.0.50.0130.0338.75
5.0.40.0100.0238.46
5.0.30.0070.0438.33
5.0.20.0100.0238.39
5.0.10.0030.0308.13
5.0.00.0070.0408.35
4.4.90.0070.0205.93
4.4.80.0100.0175.88
4.4.70.0030.0235.92
4.4.60.0030.0236.02
4.4.50.0070.0206.00
4.4.40.0030.0375.89
4.4.30.0030.0235.96
4.4.20.0070.0205.96
4.4.10.0070.0205.99
4.4.00.0070.0376.06
4.3.110.0100.0205.91
4.3.100.0030.0235.82
4.3.90.0070.0205.91
4.3.80.0070.0305.84
4.3.70.0100.0205.77
4.3.60.0030.0235.82
4.3.50.0030.0235.82
4.3.40.0000.0375.79
4.3.30.0070.0204.68
4.3.20.0000.0274.52
4.3.10.0030.0234.56
4.3.00.0100.02312.53

preferences:
47.17 ms | 401 KiB | 5 Q