3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Evil { public $info = ['data', 'I', 'want', 'to', 'add', 'to']; public function getInfo() { return $this->info; } } class Human { use Evil; public function getInfo() { $data = Evil::getInfo(); return $data + ['and', 'I', 'think', 'I', 'did']; } } var_dump((new Human)->getInfo());

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.00718.31
8.3.50.0140.00521.09
8.3.40.0070.01018.83
8.3.30.0120.00318.86
8.3.20.0000.00720.16
8.3.10.0080.00023.48
8.3.00.0090.00023.66
8.2.180.0130.00316.63
8.2.170.0060.01522.96
8.2.160.0110.00422.13
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00017.75
8.2.110.0100.00021.25
8.2.100.0080.00417.97
8.2.90.0040.00419.24
8.2.80.0000.00917.97
8.2.70.0040.00417.38
8.2.60.0000.00817.92
8.2.50.0030.00618.10
8.2.40.0060.00321.06
8.2.30.0050.00519.92
8.2.20.0000.00817.75
8.2.10.0040.00418.12
8.2.00.0000.00817.94
8.1.280.0070.00725.92
8.1.270.0090.00020.25
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00324.05
8.1.230.0040.00817.77
8.1.220.0030.00717.74
8.1.210.0030.00718.77
8.1.200.0100.00017.35
8.1.190.0050.00317.10
8.1.180.0040.00418.10
8.1.170.0030.00618.59
8.1.160.0000.00721.96
8.1.150.0040.00418.75
8.1.140.0000.00717.47
8.1.130.0000.00717.64
8.1.120.0040.00417.35
8.1.110.0040.00417.40
8.1.100.0080.00017.47
8.1.90.0000.00717.39
8.1.80.0060.00617.39
8.1.70.0040.00417.43
8.1.60.0000.00717.56
8.1.50.0000.00817.36
8.1.40.0000.00717.38
8.1.30.0060.00317.60
8.1.20.0000.00817.46
8.1.10.0020.00517.53
8.1.00.0000.00817.49
8.0.300.0070.00018.77
8.0.290.0040.00416.59
8.0.280.0070.00018.46
8.0.270.0070.00017.27
8.0.260.0080.00017.31
8.0.250.0040.00416.91
8.0.240.0040.00416.98
8.0.230.0030.00317.04
8.0.220.0030.00316.86
8.0.210.0030.00316.89
8.0.200.0030.00616.96
8.0.190.0040.00316.86
8.0.180.0000.00717.05
8.0.170.0040.00416.94
8.0.160.0000.00716.97
8.0.150.0040.00416.99
8.0.140.0070.00016.96
8.0.130.0000.00713.45
8.0.120.0060.00316.97
8.0.110.0000.00716.94
8.0.100.0040.00417.00
8.0.90.0000.00716.82
8.0.80.0130.00916.97
8.0.70.0000.00716.88
8.0.60.0050.00316.85
8.0.50.0050.00317.02
8.0.30.0080.01217.21
8.0.20.0020.01617.40
8.0.10.0000.00717.09
8.0.00.0120.00616.72
7.4.330.0030.00315.27
7.4.320.0040.00416.59
7.4.300.0060.00016.55
7.4.290.0050.00516.56
7.4.280.0050.00316.49
7.4.270.0000.00716.42
7.4.260.0040.00416.53
7.4.250.0050.00316.42
7.4.240.0060.00116.54
7.4.230.0070.00016.29
7.4.220.0150.00416.58
7.4.210.0040.01116.53
7.4.200.0000.00716.35
7.4.160.0070.01416.51
7.4.150.0100.00717.40
7.4.140.0140.00717.86
7.4.130.0080.00816.53
7.4.120.0090.00816.46
7.4.110.0090.00916.53
7.4.100.0060.01316.46
7.4.90.0060.01016.61
7.4.80.0080.00819.39
7.4.70.0060.00916.51
7.4.60.0130.00316.61
7.4.50.0060.00316.34
7.4.40.0070.01416.22
7.4.30.0120.00616.43
7.4.00.0070.00814.93
7.3.330.0000.00513.29
7.3.320.0050.00013.04
7.3.310.0030.00316.17
7.3.300.0040.00416.19
7.3.290.0050.01216.37
7.3.280.0090.01116.36
7.3.270.0100.00617.40
7.3.260.0120.00616.42
7.3.250.0080.00916.39
7.3.240.0090.00916.47
7.3.230.0100.01016.39
7.3.210.0060.00916.40
7.3.200.0090.00616.39
7.3.190.0080.00816.32
7.3.180.0080.00816.37
7.3.170.0090.00916.44
7.3.160.0110.00916.41
7.3.120.0070.01014.91
7.3.110.0140.00314.80
7.3.100.0070.00714.72
7.3.90.0030.01014.96
7.3.80.0060.01014.79
7.3.70.0030.01314.79
7.3.60.0040.00814.48
7.3.50.0060.00314.69
7.3.40.0060.00914.53
7.3.30.0060.00614.64
7.3.20.0060.00316.56
7.3.10.0060.00616.70
7.3.00.0090.00616.67
7.2.330.0090.00916.67
7.2.320.0110.00916.66
7.2.310.0130.00316.61
7.2.300.0120.00316.59
7.2.290.0070.01016.52
7.2.250.0100.01014.99
7.2.240.0090.00615.03
7.2.230.0040.00714.57
7.2.220.0040.00714.74
7.2.210.0030.00714.98
7.2.200.0120.00014.88
7.2.190.0000.01415.12
7.2.180.0100.00714.83
7.2.170.0030.01015.05
7.2.60.0070.00716.55
7.2.00.0030.01019.25
7.1.330.0030.01015.69
7.1.320.0000.00815.81
7.1.310.0030.00715.70
7.1.300.0090.00615.57
7.1.290.0070.00315.60
7.1.280.0000.01215.63
7.1.270.0080.00415.28
7.1.260.0080.00315.65
7.1.200.0090.00315.58
7.1.100.0040.00817.79
7.1.70.0030.01417.09
7.1.60.0140.01019.12
7.1.50.0070.01016.96
7.1.00.0130.06022.54
7.0.200.0040.00416.26
7.0.60.0000.04319.94
7.0.50.0070.06717.89
7.0.40.0100.06020.14
7.0.30.0270.03020.15
7.0.20.0230.04720.15
7.0.10.0070.04720.15
7.0.00.0100.07320.07
5.6.280.0030.05721.02
5.6.210.0070.06720.68
5.6.200.0100.08318.12
5.6.190.0200.07320.62
5.6.180.0430.05020.45
5.6.170.0270.06320.51
5.6.160.0030.04320.55
5.6.150.0070.04018.19
5.6.140.0070.07718.18
5.6.130.0070.03718.27
5.6.120.0070.03721.02
5.6.110.0130.07021.03
5.6.100.0200.07321.03
5.6.90.0070.04721.01
5.6.80.0100.07720.41
5.5.350.4070.03720.45
5.5.340.0070.03317.95
5.5.330.0100.08320.42
5.5.320.0230.07720.27
5.5.310.0330.07020.46
5.5.300.0000.04017.98
5.5.290.0070.07317.98
5.5.280.0100.05020.74
5.5.270.0070.03720.78
5.5.260.0000.07720.88
5.5.250.0100.05720.78
5.5.240.0130.07020.07
5.4.450.0700.05319.34
5.4.440.1100.05719.36
5.4.430.1330.07019.37
5.4.420.1170.07319.28
5.4.410.1330.07019.18
5.4.400.1130.06719.04
5.4.390.1330.07018.98
5.4.380.1030.07719.05
5.4.370.0930.07018.87
5.4.360.1370.05718.94
5.4.350.0970.04719.02
5.4.340.0870.05319.04
5.4.320.0930.08719.04
5.4.310.0870.05319.03
5.4.300.1000.04719.11
5.4.290.0900.05318.93
5.4.280.0870.06019.12
5.4.270.0770.06319.04
5.4.260.0800.05019.05
5.4.250.0870.04719.04
5.4.240.0970.06719.01
5.4.230.1000.05318.82
5.4.220.1030.05318.86
5.4.210.0800.05719.01
5.4.200.0930.05316.89
5.4.190.0700.05718.89
5.4.180.0800.05319.02
5.4.170.0700.05318.94
5.4.160.0630.05719.00
5.4.150.0430.05318.87
5.4.140.0500.04716.38
5.4.130.0800.04316.37
5.4.120.0900.04316.33
5.4.110.0800.04316.39
5.4.100.0100.05016.50
5.4.90.0130.04716.39
5.4.80.0800.05316.36
5.4.70.0430.06316.48
5.4.60.0270.05016.34
5.4.50.0900.05316.34
5.4.40.1000.05316.68
5.4.30.0770.05716.29
5.4.20.0730.06016.51
5.4.10.0600.05316.33
5.4.00.0970.05715.86
5.3.290.0770.05714.53
5.3.280.0430.05314.46
5.3.270.0600.05714.44
5.3.260.0870.06714.59
5.3.250.0600.05714.54
5.3.240.0870.04714.61
5.3.230.0800.06314.69
5.3.220.0870.05714.41
5.3.210.0700.05714.41
5.3.200.0730.05714.50
5.3.190.0870.06014.52
5.3.180.0870.04714.42
5.3.170.0570.05314.41
5.3.160.0800.06314.44
5.3.150.0730.04714.43
5.3.140.0770.05314.40
5.3.130.0930.05714.53
5.3.120.0800.05014.48
5.3.110.0870.05714.64
5.3.100.0900.05714.02
5.3.90.0830.04313.88
5.3.80.0700.04714.03
5.3.70.0970.05714.00
5.3.60.0830.05013.98
5.3.50.0800.05013.88
5.3.40.0830.06013.72
5.3.30.0900.05313.76
5.3.20.0570.05313.46
5.3.10.0770.04313.54
5.3.00.0730.04013.46
5.2.170.0670.04711.00
5.2.160.0630.03311.13
5.2.150.0630.05010.98
5.2.140.0630.04310.98
5.2.130.0670.03711.04
5.2.120.0670.03011.15
5.2.110.0570.05011.04
5.2.100.0730.04711.12
5.2.90.0500.04011.26
5.2.80.0530.04711.17
5.2.70.0630.04711.11
5.2.60.0900.03310.88
5.2.50.0570.04010.96
5.2.40.0470.03711.01
5.2.30.0470.04010.81
5.2.20.0500.03310.89
5.2.10.0530.04710.71
5.2.00.0700.04710.66
5.1.60.0530.0279.96
5.1.50.0430.0379.82
5.1.40.0530.0409.81
5.1.30.0670.03310.20
5.1.20.0030.03710.40
5.1.10.0270.02710.04
5.1.00.0530.05010.09
5.0.50.0330.0238.65
5.0.40.0270.0308.30
5.0.30.0200.0478.15
5.0.20.0170.0308.27
5.0.10.0230.0308.05
5.0.00.0300.0478.16
4.4.90.0270.0277.21
4.4.80.0200.0237.21
4.4.70.0230.0237.21
4.4.60.0230.0277.21
4.4.50.0330.0177.21
4.4.40.0230.0337.21
4.4.30.0270.0207.21
4.4.20.0200.0207.21
4.4.10.0330.0237.21
4.4.00.0400.0277.21
4.3.110.0230.0237.21
4.3.100.0230.0237.21
4.3.90.0370.0137.21
4.3.80.0230.0377.21
4.3.70.0170.0337.21
4.3.60.0200.0177.21
4.3.50.0170.0237.21
4.3.40.0170.0337.21
4.3.30.0070.0277.21
4.3.20.0070.0277.21
4.3.10.0100.0277.21
4.3.00.0030.0207.28

preferences:
62.36 ms | 401 KiB | 5 Q