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.30.0250.00618.10
8.5.20.0200.00817.06
8.5.10.0220.00916.82
8.5.00.0230.00817.40
8.4.180.0170.01119.59
8.4.170.0260.01219.62
8.4.160.0210.00820.87
8.4.150.0170.00718.74
8.4.140.0250.00817.52
8.4.130.0320.00917.72
8.4.120.0290.00818.61
8.4.110.0340.00818.01
8.4.100.0260.00817.78
8.4.90.0290.00818.17
8.4.80.0290.00817.81
8.4.70.0320.00817.72
8.4.60.0290.00717.87
8.4.50.0280.00817.93
8.4.40.0310.00817.78
8.4.30.0320.00817.67
8.4.20.0320.00717.79
8.4.10.0330.00717.59
8.3.300.0250.00818.27
8.3.290.0210.00618.84
8.3.280.0260.00918.29
8.3.270.0320.00816.80
8.3.260.0320.00616.73
8.3.250.0260.00817.09
8.3.240.0250.00616.77
8.3.230.0280.00716.66
8.3.220.0280.00716.67
8.3.210.0280.00717.00
8.3.200.0270.00716.82
8.3.190.0220.00617.05
8.3.180.0240.00616.78
8.3.170.0300.00716.94
8.3.160.0290.00716.82
8.3.150.0300.00716.73
8.3.140.0290.00716.71
8.3.130.0260.00616.78
8.3.120.0250.00716.86
8.3.110.0230.00718.23
8.3.100.0300.00717.19
8.3.90.0300.00717.63
8.3.80.0280.00717.81
8.3.70.0300.00717.68
8.3.60.0290.00818.33
8.3.50.0300.00717.97
8.3.40.0260.00719.00
8.3.30.0230.00719.12
8.3.20.0250.00819.68
8.3.10.0210.00719.94
8.3.00.0190.00719.58
8.2.300.0250.00818.80
8.2.290.0250.00717.55
8.2.280.0230.00716.82
8.2.270.0260.00816.71
8.2.260.0270.00616.68
8.2.250.0260.00816.65
8.2.240.0260.00616.65
8.2.230.0250.00716.75
8.2.220.0240.00817.37
8.2.210.0260.00717.60
8.2.200.0260.00717.77
8.2.190.0270.00717.79
8.2.180.0250.00718.79
8.2.170.0290.00618.84
8.2.160.0260.00719.21
8.2.150.0230.00819.17
8.2.140.0240.00619.67
8.2.130.0250.00719.83
8.2.120.0230.00819.46
8.2.110.0220.00719.74
8.2.100.0220.00719.33
8.2.90.0220.00719.31
8.2.80.0220.00719.17
8.2.70.0190.00727.77
8.2.60.0220.00620.05
8.2.50.0210.00620.07
8.2.40.0200.00619.91
8.2.30.0190.00619.77
8.2.20.0170.00719.69
8.2.10.0180.00619.60
8.2.00.0180.00619.49
8.1.340.0230.00917.61
8.1.330.0250.00716.28
8.1.320.0240.00616.53
8.1.310.0280.00716.27
8.1.300.0250.00716.38
8.1.290.0250.00717.80
8.1.280.0260.00717.89
8.1.270.0220.00719.75
8.1.260.0210.00620.00
8.1.250.0210.00720.07
8.1.240.0200.00619.22
8.1.230.0190.00719.19
8.1.220.0200.00619.05
8.1.210.0180.00719.04
8.1.200.0180.00619.76
8.1.190.0190.00619.75
8.1.180.0190.00619.69
8.1.170.0190.00719.70
8.1.160.0180.00719.57
8.1.150.0180.00619.50
8.1.140.0170.00619.36
8.1.130.0160.00619.15
8.1.120.0160.00619.13
8.1.110.0160.00619.01
8.1.100.0150.00618.95
8.1.90.0140.00618.85
8.1.80.0150.00618.83
8.1.70.0140.00618.67
8.1.60.0160.00618.75
8.1.50.0150.00618.68
8.1.40.0160.00618.62
8.1.30.0160.00518.65
8.1.20.0160.00618.62
8.1.10.0160.00518.49
8.1.00.0150.00618.42
8.0.300.0190.00618.48
8.0.290.0210.00619.31
8.0.280.0210.00719.10
8.0.270.0180.00619.01
8.0.260.0190.00618.87
8.0.250.0180.00518.69
8.0.240.0170.00618.50
8.0.230.0160.00618.47
8.0.220.0160.00618.29
8.0.210.0170.00518.30
8.0.200.0160.00618.20
8.0.190.0150.00518.15
8.0.180.0150.00618.07
8.0.170.0160.00518.01
8.0.160.0150.00617.94
8.0.150.0160.00517.81
8.0.140.0150.00517.79
8.0.130.0150.00517.68
8.0.120.0140.00517.58
8.0.110.0140.00517.55
8.0.100.0130.00517.50
8.0.90.0130.00517.48
8.0.80.0130.00517.51
8.0.70.0130.00517.50
8.0.60.0130.00517.49
8.0.50.0130.00517.50
8.0.30.0130.00517.50
8.0.20.0130.00517.56
8.0.10.0140.00517.62
8.0.00.0110.00517.81
7.4.330.0150.00517.75
7.4.320.0170.00518.15
7.4.300.0150.00517.90
7.4.290.0150.00617.85
7.4.280.0160.00517.69
7.4.270.0160.00517.57
7.4.260.0160.00517.49
7.4.250.0160.00517.37
7.4.240.0150.00517.33
7.4.230.0150.00517.29
7.4.220.0130.00517.27
7.4.210.0130.00517.27
7.4.200.0130.00517.29
7.4.190.0140.00417.33
7.4.180.0130.00517.32
7.4.160.0130.00517.33
7.4.150.0130.00517.25
7.4.140.0130.00517.20
7.4.130.0130.00517.19
7.4.120.0130.00517.22
7.4.110.0140.00517.21
7.4.100.0130.00417.26
7.4.90.0130.00517.18
7.4.80.0140.00517.22
7.4.70.0130.00517.22
7.4.60.0120.00517.21
7.4.50.0120.00517.16
7.4.40.0130.00517.15
7.4.30.0130.00517.21
7.4.20.0120.00517.20
7.4.10.0120.00517.20
7.4.00.0120.00517.78
7.3.330.0160.00517.18
7.3.320.0160.00417.08
7.3.310.0150.00517.04
7.3.300.0150.00517.02
7.3.290.0140.00516.98
7.3.280.0140.00516.97
7.3.270.0140.00516.98
7.3.260.0140.00416.99
7.3.250.0140.00516.97
7.3.240.0150.00416.98
7.3.230.0140.00516.98
7.3.220.0150.00416.92
7.3.210.0150.00516.92
7.3.200.0140.00516.93
7.3.190.0150.00516.93
7.3.180.0150.00516.94
7.3.170.0150.00416.95
7.3.160.0140.00516.94
7.3.150.0140.00516.92
7.3.140.0140.00516.92
7.3.130.0140.00516.93
7.3.120.0140.00516.93
7.3.110.0140.00516.89
7.3.100.0150.00416.88
7.3.90.0150.00417.15
7.3.80.0140.00516.93
7.3.70.0140.00517.01
7.3.60.0140.00517.02
7.3.50.0140.00517.02
7.3.40.0140.00517.02
7.3.30.0140.00417.02
7.3.20.0160.00418.08
7.3.10.0150.00518.02
7.3.00.0150.00518.04

preferences:
81.22 ms | 1380 KiB | 5 Q