3v4l.org

run code in 300+ 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.4.20.0130.00618.80
8.4.10.0370.00917.79
8.3.150.0090.00916.58
8.3.140.0310.00416.69
8.3.130.0250.00617.16
8.3.120.0220.00817.28
8.3.110.0170.00820.64
8.3.100.0270.00718.82
8.3.90.0280.00920.60
8.3.80.0280.00820.51
8.3.70.0300.00620.12
8.3.60.0280.01021.91
8.3.50.0260.00821.16
8.3.40.0220.00821.14
8.3.30.0210.00721.41
8.3.20.0190.00822.53
8.3.10.0160.00722.61
8.3.00.0180.00621.77
8.2.260.0230.00916.55
8.2.250.0210.00916.51
8.2.240.0210.00516.58
8.2.230.0180.00917.23
8.2.220.0200.00819.68
8.2.210.0250.00820.59
8.2.200.0230.00820.77
8.2.190.0250.00820.80
8.2.180.0270.00722.88
8.2.170.0280.00621.06
8.2.160.0220.00821.71
8.2.150.0190.00921.35
8.2.140.0210.00621.87
8.2.130.0190.00722.31
8.2.120.0180.00721.38
8.2.110.0160.00821.45
8.2.100.0180.00720.85
8.2.90.0190.00620.54
8.2.80.0180.00720.48
8.2.70.0150.00632.91
8.2.60.0170.00721.93
8.2.50.0170.00621.89
8.2.40.0160.00521.43
8.2.30.0140.00621.01
8.2.20.0130.00720.89
8.2.10.0140.00620.68
8.2.00.0140.00520.41
8.1.310.0250.00816.04
8.1.300.0230.00816.36
8.1.290.0230.00821.65
8.1.280.0270.00621.68
8.1.270.0160.00722.40
8.1.260.0170.00622.89
8.1.250.0170.00723.01
8.1.240.0160.00520.95
8.1.230.0150.00720.76
8.1.220.0160.00520.34
8.1.210.0140.00620.49
8.1.200.0140.00621.61
8.1.190.0150.00621.62
8.1.180.0160.00521.55
8.1.170.0150.00721.43
8.1.160.0140.00621.00
8.1.150.0130.00620.73
8.1.140.0140.00620.51
8.1.130.0120.00620.00
8.1.120.0120.00519.84
8.1.110.0130.00519.65
8.1.100.0120.00519.52
8.1.90.0110.00619.34
8.1.80.0120.00619.30
8.1.70.0110.00519.06
8.1.60.0140.00619.10
8.1.50.0130.00619.01
8.1.40.0140.00518.91
8.1.30.0140.00518.91
8.1.20.0140.00618.87
8.1.10.0140.00518.71
8.1.00.0140.00618.65
8.0.300.0150.00619.72
8.0.290.0170.00621.20
8.0.280.0180.00720.57
8.0.270.0150.00620.23
8.0.260.0160.00619.89
8.0.250.0140.00519.45
8.0.240.0150.00519.14
8.0.230.0130.00619.07
8.0.220.0140.00518.80
8.0.210.0150.00518.77
8.0.200.0130.00618.64
8.0.190.0130.00518.55
8.0.180.0130.00518.42
8.0.170.0140.00518.32
8.0.160.0120.00518.22
8.0.150.0140.00518.06
8.0.140.0130.00518.02
8.0.130.0130.00417.86
8.0.120.0130.00517.76
8.0.110.0120.00517.72
8.0.100.0110.00517.64
8.0.90.0110.00517.62
8.0.80.0110.00517.66
8.0.70.0110.00517.64
8.0.60.0110.00517.63
8.0.50.0110.00517.64
8.0.30.0120.00517.64
8.0.20.0110.00517.70
8.0.10.0120.00517.76
8.0.00.0090.00517.97
7.4.330.0130.00418.27
7.4.320.0150.00518.77
7.4.300.0130.00518.28
7.4.290.0140.00518.21
7.4.280.0140.00517.97
7.4.270.0140.00517.80
7.4.260.0140.00517.69
7.4.250.0150.00417.54
7.4.240.0130.00517.47
7.4.230.0140.00417.43
7.4.220.0120.00517.41
7.4.210.0120.00517.41
7.4.200.0120.00417.42
7.4.190.0120.00417.47
7.4.180.0120.00517.46
7.4.160.0120.00517.46
7.4.150.0120.00417.38
7.4.140.0120.00517.35
7.4.130.0120.00517.32
7.4.120.0120.00417.36
7.4.110.0120.00417.34
7.4.100.0120.00417.40
7.4.90.0120.00417.33
7.4.80.0120.00517.35
7.4.70.0110.00517.35
7.4.60.0100.00517.35
7.4.50.0110.00517.29
7.4.40.0110.00517.29
7.4.30.0110.00517.35
7.4.20.0110.00517.34
7.4.10.0110.00517.34
7.4.00.0110.00418.02
7.3.330.0140.00417.38
7.3.320.0150.00417.25
7.3.310.0140.00417.20
7.3.300.0130.00517.16
7.3.290.0130.00517.11
7.3.280.0130.00517.12
7.3.270.0130.00417.12
7.3.260.0130.00417.12
7.3.250.0130.00517.10
7.3.240.0140.00417.11
7.3.230.0130.00517.12
7.3.220.0130.00417.05
7.3.210.0130.00517.04
7.3.200.0130.00517.06
7.3.190.0130.00417.05
7.3.180.0140.00417.07
7.3.170.0130.00417.09
7.3.160.0130.00517.07
7.3.150.0130.00517.05
7.3.140.0130.00417.05
7.3.130.0130.00517.06
7.3.120.0130.00417.06
7.3.110.0130.00517.02
7.3.100.0130.00417.00
7.3.90.0130.00417.28
7.3.80.0130.00517.06
7.3.70.0120.00517.14
7.3.60.0120.00517.16
7.3.50.0130.00417.16
7.3.40.0130.00417.16
7.3.30.0130.00417.15
7.3.20.0140.00418.21
7.3.10.0140.00418.15
7.3.00.0140.00418.18

preferences:
17.71 ms | 403 KiB | 5 Q