3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); class Pont { public static int $nombrePietons = 0; public function nouveauPieton() { self::$nombrePietons++; } } $pontLondres = new Pont; $pontLondres->nouveauPieton(); $pontManhattan = new Pont; $pontManhattan->nouveauPieton(); echo Pont::$nombrePietons;

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.5.90.0180.00616.80
8.5.80.0110.00616.68
8.5.70.0110.00716.74
8.5.60.0190.00816.79
8.5.50.0150.00616.54
8.5.40.0150.00316.46
8.5.30.0270.00717.43
8.5.20.0210.00716.86
8.5.10.0220.00816.75
8.5.00.0200.00717.19
8.4.240.0110.00619.59
8.4.230.0120.00919.57
8.4.220.0160.00819.52
8.4.210.0120.00819.50
8.4.200.0140.00519.52
8.4.190.0150.00619.62
8.4.180.0190.01019.57
8.4.170.0240.01019.62
8.4.160.0200.00820.40
8.4.150.0190.00618.92
8.4.140.0250.00717.50
8.4.130.0310.00817.70
8.4.120.0280.00818.46
8.4.110.0330.00717.96
8.4.100.0260.00717.74
8.4.90.0270.00818.08
8.4.80.0280.00817.80
8.4.70.0310.00817.71
8.4.60.0280.00717.84
8.4.50.0280.00817.90
8.4.40.0310.00817.76
8.4.30.0320.00817.66
8.4.20.0320.00717.79
8.4.10.0330.00717.59
8.3.330.0130.00418.26
8.3.320.0110.00718.32
8.3.310.0110.00818.39
8.3.300.0220.00818.20
8.3.290.0220.00618.61
8.3.280.0250.00918.28
8.3.270.0300.00816.71
8.3.260.0300.00616.68
8.3.250.0240.00716.96
8.3.240.0240.00616.71
8.3.230.0260.00716.65
8.3.220.0260.00716.66
8.3.210.0270.00716.95
8.3.200.0260.00716.79
8.3.190.0220.00616.99
8.3.180.0230.00616.76
8.3.170.0290.00716.91
8.3.160.0280.00716.80
8.3.150.0290.00716.73
8.3.140.0290.00716.71
8.3.130.0260.00616.77
8.3.120.0250.00716.84
8.3.110.0230.00718.17
8.3.100.0290.00717.16
8.3.90.0300.00717.58
8.3.80.0280.00717.76
8.3.70.0300.00717.63
8.3.60.0290.00818.25
8.3.50.0290.00717.91
8.3.40.0260.00718.96
8.3.30.0230.00719.07
8.3.20.0240.00719.61
8.3.10.0210.00719.86
8.3.00.0190.00719.52
8.2.330.0150.00617.75
8.2.320.0190.00818.00
8.2.310.0170.00717.90
8.2.300.0250.00818.46
8.2.290.0240.00717.51
8.2.280.0220.00716.79
8.2.270.0250.00816.70
8.2.260.0270.00616.67
8.2.250.0260.00716.65
8.2.240.0260.00616.64
8.2.230.0240.00716.73
8.2.220.0240.00817.32
8.2.210.0260.00717.55
8.2.200.0250.00717.71
8.2.190.0260.00717.73
8.2.180.0250.00718.70
8.2.170.0280.00618.81
8.2.160.0250.00719.16
8.2.150.0230.00819.12
8.2.140.0240.00619.60
8.2.130.0240.00719.76
8.2.120.0230.00819.41
8.2.110.0220.00719.69
8.2.100.0220.00719.29
8.2.90.0220.00719.27
8.2.80.0220.00719.13
8.2.70.0190.00627.55
8.2.60.0220.00619.99
8.2.50.0210.00620.01
8.2.40.0200.00619.86
8.2.30.0190.00619.72
8.2.20.0180.00719.65
8.2.10.0180.00619.56
8.2.00.0180.00619.46
8.1.340.0240.00817.55
8.1.330.0240.00716.28
8.1.320.0240.00616.50
8.1.310.0280.00616.28
8.1.300.0250.00716.37
8.1.290.0250.00717.73
8.1.280.0260.00717.82
8.1.270.0220.00719.67
8.1.260.0220.00619.91
8.1.250.0210.00719.98
8.1.240.0190.00619.17
8.1.230.0190.00719.14
8.1.220.0200.00619.01
8.1.210.0180.00718.99
8.1.200.0190.00619.69
8.1.190.0190.00619.69
8.1.180.0190.00619.63
8.1.170.0190.00719.64
8.1.160.0180.00719.51
8.1.150.0180.00619.45
8.1.140.0170.00619.31
8.1.130.0160.00619.12
8.1.120.0160.00619.10
8.1.110.0160.00618.99
8.1.100.0150.00618.92
8.1.90.0140.00618.83
8.1.80.0150.00618.81
8.1.70.0140.00618.66
8.1.60.0160.00618.73
8.1.50.0150.00618.66
8.1.40.0160.00618.61
8.1.30.0160.00518.64
8.1.20.0160.00618.60
8.1.10.0160.00518.48
8.1.00.0150.00618.41
8.0.300.0190.00618.41
8.0.290.0210.00619.24
8.0.280.0210.00719.04
8.0.270.0180.00618.96
8.0.260.0190.00618.82
8.0.250.0180.00518.65
8.0.240.0170.00618.47
8.0.230.0160.00618.44
8.0.220.0160.00618.27
8.0.210.0170.00518.27
8.0.200.0160.00618.18
8.0.190.0160.00518.13
8.0.180.0150.00618.05
8.0.170.0160.00517.99
8.0.160.0150.00617.92
8.0.150.0160.00517.79
8.0.140.0150.00517.78
8.0.130.0150.00517.67
8.0.120.0140.00517.57
8.0.110.0140.00517.54
8.0.100.0130.00517.49
8.0.90.0130.00517.48
8.0.80.0130.00517.50
8.0.70.0130.00517.49
8.0.60.0130.00517.48
8.0.50.0130.00517.49
8.0.30.0130.00517.49
8.0.20.0130.00517.56
8.0.10.0140.00517.61
8.0.00.0110.00517.80
7.4.330.0150.00517.73
7.4.320.0170.00518.12
7.4.300.0150.00517.88
7.4.290.0150.00617.83
7.4.280.0160.00517.67
7.4.270.0160.00517.56
7.4.260.0160.00517.48
7.4.250.0160.00517.36
7.4.240.0150.00517.32
7.4.230.0150.00517.28
7.4.220.0130.00517.27
7.4.210.0130.00517.27
7.4.200.0130.00517.28
7.4.190.0140.00417.32
7.4.180.0130.00517.31
7.4.160.0130.00517.32
7.4.150.0130.00517.25
7.4.140.0130.00517.20
7.4.130.0130.00517.18
7.4.120.0140.00517.21
7.4.110.0140.00517.20
7.4.100.0130.00517.25
7.4.90.0130.00517.17
7.4.80.0140.00517.21
7.4.70.0130.00517.21
7.4.60.0120.00517.20
7.4.50.0120.00517.15
7.4.40.0120.00517.14
7.4.30.0130.00517.21
7.4.20.0130.00517.20
7.4.10.0120.00517.19
7.4.00.0120.00517.77
7.3.330.0160.00517.17
7.3.320.0160.00417.07
7.3.310.0150.00517.04
7.3.300.0150.00517.01
7.3.290.0140.00516.97
7.3.280.0140.00516.97
7.3.270.0140.00516.98
7.3.260.0140.00416.98
7.3.250.0150.00516.96
7.3.240.0150.00416.97
7.3.230.0140.00516.97
7.3.220.0150.00416.91
7.3.210.0150.00516.91
7.3.200.0140.00516.92
7.3.190.0150.00516.92
7.3.180.0150.00516.93
7.3.170.0150.00416.95
7.3.160.0140.00516.93
7.3.150.0140.00516.91
7.3.140.0140.00516.92
7.3.130.0150.00516.92
7.3.120.0140.00516.92
7.3.110.0140.00516.89
7.3.100.0150.00416.87
7.3.90.0150.00417.14
7.3.80.0140.00516.93
7.3.70.0140.00517.00
7.3.60.0140.00517.02
7.3.50.0140.00517.02
7.3.40.0140.00517.01
7.3.30.0140.00417.01
7.3.20.0160.00418.08
7.3.10.0150.00518.02
7.3.00.0150.00518.04

preferences:
53.53 ms | 1451 KiB | 5 Q