3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DragonBallClass { public ?string $goku = NULL; public string $bulma = 'Bulma'; public string $vegeta = 'Vegeta'; } $dragonBall = new DragonBallClass(); foreach ($dragonBall as $character) { var_dump($character); }

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.0100.01016.63
8.3.50.0090.00918.23
8.3.40.0070.00720.42
8.3.30.0120.00318.36
8.3.20.0040.00421.73
8.3.10.0080.00022.08
8.3.00.0040.00422.40
8.2.180.0140.00716.38
8.2.170.0070.00722.96
8.2.160.0110.00419.54
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00026.16
8.2.120.0040.00421.18
8.2.110.0060.00319.27
8.2.100.0070.00417.85
8.2.90.0040.00419.47
8.2.80.0000.00817.25
8.2.70.0000.00917.63
8.2.60.0050.00318.05
8.2.50.0000.00818.07
8.2.40.0030.00618.16
8.2.30.0000.00817.93
8.2.20.0080.00018.03
8.2.10.0050.00320.95
8.2.00.0040.00419.22
8.1.280.0180.00025.92
8.1.270.0050.00522.19
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0000.00922.10
8.1.230.0090.00320.97
8.1.220.0080.00017.74
8.1.210.0090.00018.85
8.1.200.0060.00317.36
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0050.00318.65
8.1.160.0000.00818.82
8.1.150.0000.00718.86
8.1.140.0040.00418.80
8.1.130.0000.00719.17
8.1.120.0040.00417.34
8.1.110.0000.00817.42
8.1.100.0040.00417.50
8.1.90.0070.00517.44
8.1.80.0040.00817.43
8.1.70.0080.00417.37
8.1.60.0080.00617.56
8.1.50.0090.00317.39
8.1.40.0080.00517.52
8.1.30.0100.00317.62
8.1.20.0090.00417.57
8.1.10.0070.00617.43
8.1.00.0080.00517.35
8.0.300.0070.00020.16
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0070.00018.00
8.0.260.0080.00016.81
8.0.250.0000.00616.84
8.0.240.0000.00616.92
8.0.230.0070.00016.98
8.0.220.0050.00316.88
8.0.210.0100.00216.79
8.0.200.0060.00516.86
8.0.190.0040.00616.86
8.0.180.0070.00316.87
8.0.170.0050.00416.89
8.0.160.0050.00316.86
8.0.150.0070.00216.76
8.0.140.0060.00416.80
8.0.130.0060.00315.05
8.0.120.0100.00216.82
8.0.110.0090.00216.77
8.0.100.0080.00316.80
8.0.90.0090.00316.90
8.0.80.0090.00816.87
8.0.70.0040.00816.83
8.0.60.0100.00216.79
8.0.50.0060.00516.85
8.0.30.0110.00516.90
8.0.20.0120.00517.04
8.0.10.0060.00516.83
8.0.00.0110.00716.84
7.4.330.0000.00415.55
7.4.320.0000.00616.49
7.4.300.0070.00416.56
7.4.290.0080.00516.42
7.4.280.0090.00316.47
7.4.270.0110.00116.48
7.4.260.0030.00814.82
7.4.250.0090.00316.50
7.4.240.0090.00116.57
7.4.230.0050.00616.59
7.4.220.0080.00116.59
7.4.210.0070.00816.51
7.4.200.0060.00616.52
7.4.190.0090.00316.63
7.4.180.0060.00616.63
7.4.160.0080.00316.53
7.4.150.0120.00016.50
7.4.140.0040.00716.45
7.4.130.0100.00816.31
7.4.120.0080.00616.46
7.4.110.0070.00716.39
7.4.100.0170.00716.50
7.4.90.0140.01016.50
7.4.80.0130.00717.39
7.4.70.0120.00916.41
7.4.60.0070.01116.35
7.4.50.0150.00516.35
7.4.40.0070.01016.31
7.4.30.0100.00716.44
7.4.20.0120.00816.44
7.4.10.0110.00916.37
7.4.00.0070.01016.42
7.3.330.0060.00616.21
7.3.320.0050.00414.71
7.3.310.0070.00316.20
7.3.300.0070.00416.18
7.3.290.0060.00516.21
7.3.280.0080.00716.14
7.3.270.0060.00915.95
7.3.260.0110.00716.20
7.3.250.0080.00616.29
7.3.240.0110.00916.28
7.3.230.0060.01016.10
7.3.220.0210.00716.17
7.3.210.0170.00616.19
7.3.200.0150.00716.20
7.3.190.0190.00516.18
7.3.180.0150.01016.14
7.3.170.0120.00916.20
7.3.160.0140.00716.20
7.3.150.0150.00716.22
7.3.140.0160.00916.11
7.3.130.0130.00916.29
7.3.120.0140.00716.20
7.3.110.0170.00516.09
7.3.100.0150.00816.04
7.3.90.0110.01116.29
7.3.80.0150.00816.13
7.3.70.0100.01116.07
7.3.60.0160.00716.16
7.3.50.0150.00716.22
7.3.40.0140.00816.09
7.3.30.0140.00716.14
7.3.20.0110.01016.86
7.3.10.0170.00716.76
7.3.00.0150.00816.79
7.2.340.0130.00016.16
7.2.330.0120.00916.22
7.2.320.0120.01416.31
7.2.310.0130.00816.37
7.2.300.0130.00716.29
7.2.290.0120.00816.18
7.2.280.0120.00816.24
7.2.270.0170.00616.21
7.2.260.0180.00616.21
7.2.250.0140.00716.16
7.2.240.0090.01416.18
7.2.230.0100.01416.32
7.2.220.0110.01116.19
7.2.210.0090.01416.24
7.2.200.0130.01016.26
7.2.190.0140.00516.28
7.2.180.0110.01016.30
7.2.170.0110.00916.26
7.2.160.0120.00816.22
7.2.150.0230.00717.02
7.2.140.0150.00717.00
7.2.130.0180.00616.94
7.2.120.0210.00616.96
7.2.110.0210.01016.99
7.2.100.0150.01117.05
7.2.90.0160.00816.86
7.2.80.0200.00816.91
7.2.70.0160.00616.86
7.2.60.0170.00516.88
7.2.50.0150.00916.91
7.2.40.0190.00617.02
7.2.30.0150.01116.89
7.2.20.0140.01016.88
7.2.10.0180.00716.95
7.2.00.0190.00816.99

preferences:
35.78 ms | 400 KiB | 5 Q