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.5.30.0110.00719.64
8.5.20.0090.01017.88
8.5.10.0200.00917.02
8.5.00.0190.00817.68
8.4.180.0090.01319.63
8.4.170.0260.01319.68
8.4.160.0200.00922.18
8.4.150.0200.00718.27
8.4.140.0280.00917.48
8.4.130.0330.00817.79
8.4.120.0300.00818.84
8.4.110.0330.00818.07
8.4.100.0270.00817.79
8.4.90.0320.00818.27
8.4.80.0290.00817.83
8.4.70.0310.00817.73
8.4.60.0300.00717.88
8.4.50.0290.00817.96
8.4.40.0310.00817.80
8.4.30.0320.00817.67
8.4.20.0320.00717.80
8.4.10.0340.00717.58
8.3.300.0300.01118.19
8.3.290.0180.00819.44
8.3.280.0260.01118.27
8.3.270.0290.00916.99
8.3.260.0300.00616.81
8.3.250.0270.00817.28
8.3.240.0260.00616.80
8.3.230.0300.00816.67
8.3.220.0300.00816.68
8.3.210.0290.00717.07
8.3.200.0280.00716.87
8.3.190.0220.00617.13
8.3.180.0240.00616.80
8.3.170.0300.00716.96
8.3.160.0300.00716.84
8.3.150.0300.00716.74
8.3.140.0300.00716.72
8.3.130.0260.00616.79
8.3.120.0250.00716.87
8.3.110.0230.00718.30
8.3.100.0300.00717.22
8.3.90.0300.00717.69
8.3.80.0290.00717.88
8.3.70.0310.00717.74
8.3.60.0300.00818.42
8.3.50.0300.00818.04
8.3.40.0260.00719.06
8.3.30.0230.00719.17
8.3.20.0250.00719.76
8.3.10.0210.00720.02
8.3.00.0190.00719.65
8.2.300.0270.01119.72
8.2.290.0240.00617.75
8.2.280.0230.00716.86
8.2.270.0260.00816.73
8.2.260.0270.00616.68
8.2.250.0260.00816.66
8.2.240.0270.00616.65
8.2.230.0250.00716.77
8.2.220.0250.00817.41
8.2.210.0260.00717.66
8.2.200.0260.00717.84
8.2.190.0270.00717.87
8.2.180.0260.00818.89
8.2.170.0290.00618.89
8.2.160.0260.00719.27
8.2.150.0240.00819.22
8.2.140.0250.00719.74
8.2.130.0250.00719.91
8.2.120.0230.00819.51
8.2.110.0220.00719.80
8.2.100.0220.00719.38
8.2.90.0220.00719.35
8.2.80.0220.00719.21
8.2.70.0190.00727.99
8.2.60.0220.00620.12
8.2.50.0210.00620.14
8.2.40.0200.00619.97
8.2.30.0190.00619.82
8.2.20.0170.00719.74
8.2.10.0180.00619.65
8.2.00.0180.00619.53
8.1.340.0180.00917.95
8.1.330.0250.00716.31
8.1.320.0240.00616.58
8.1.310.0290.00716.29
8.1.300.0260.00716.39
8.1.290.0260.00717.89
8.1.280.0270.00717.98
8.1.270.0220.00719.82
8.1.260.0220.00620.08
8.1.250.0210.00720.15
8.1.240.0190.00619.27
8.1.230.0190.00719.24
8.1.220.0200.00619.09
8.1.210.0180.00719.08
8.1.200.0180.00619.82
8.1.190.0190.00619.82
8.1.180.0190.00619.76
8.1.170.0190.00719.76
8.1.160.0180.00719.62
8.1.150.0180.00619.54
8.1.140.0170.00619.40
8.1.130.0160.00619.19
8.1.120.0160.00519.16
8.1.110.0150.00619.04
8.1.100.0150.00618.97
8.1.90.0140.00618.88
8.1.80.0150.00618.85
8.1.70.0140.00618.69
8.1.60.0160.00618.77
8.1.50.0150.00618.69
8.1.40.0160.00618.64
8.1.30.0160.00518.66
8.1.20.0160.00618.63
8.1.10.0160.00518.50
8.1.00.0150.00618.43
8.0.300.0190.00618.52
8.0.290.0210.00619.38
8.0.280.0210.00719.16
8.0.270.0180.00619.06
8.0.260.0190.00618.92
8.0.250.0170.00518.72
8.0.240.0170.00618.53
8.0.230.0160.00618.50
8.0.220.0160.00518.32
8.0.210.0160.00518.32
8.0.200.0150.00618.22
8.0.190.0150.00518.17
8.0.180.0150.00618.09
8.0.170.0160.00518.02
8.0.160.0150.00617.95
8.0.150.0150.00517.82
8.0.140.0150.00517.80
8.0.130.0150.00517.68
8.0.120.0140.00517.59
8.0.110.0130.00517.56
8.0.100.0130.00517.51
8.0.90.0130.00517.49
8.0.80.0130.00517.52
8.0.70.0130.00517.50
8.0.60.0130.00517.50
8.0.50.0130.00517.50
8.0.30.0130.00517.50
8.0.20.0130.00517.57
8.0.10.0140.00517.63
8.0.00.0110.00517.82
7.4.330.0150.00517.77
7.4.320.0170.00518.18
7.4.300.0150.00517.92
7.4.290.0150.00617.86
7.4.280.0160.00517.70
7.4.270.0150.00517.59
7.4.260.0150.00517.50
7.4.250.0160.00517.38
7.4.240.0150.00517.34
7.4.230.0150.00517.30
7.4.220.0130.00517.28
7.4.210.0130.00517.28
7.4.200.0130.00517.29
7.4.190.0140.00417.33
7.4.180.0130.00517.33
7.4.160.0130.00517.34
7.4.150.0130.00517.26
7.4.140.0130.00517.21
7.4.130.0130.00517.19
7.4.120.0130.00417.23
7.4.110.0140.00517.22
7.4.100.0130.00417.27
7.4.90.0130.00517.19
7.4.80.0130.00517.22
7.4.70.0130.00517.22
7.4.60.0120.00517.22
7.4.50.0120.00517.17
7.4.40.0120.00517.16
7.4.30.0130.00517.22
7.4.20.0120.00517.21
7.4.10.0120.00517.21
7.4.00.0120.00517.79
7.3.330.0160.00517.19
7.3.320.0160.00417.09
7.3.310.0150.00517.05
7.3.300.0150.00517.03
7.3.290.0140.00516.99
7.3.280.0140.00516.98
7.3.270.0140.00516.99
7.3.260.0140.00417.00
7.3.250.0140.00516.97
7.3.240.0150.00416.99
7.3.230.0140.00516.98
7.3.220.0150.00416.93
7.3.210.0140.00516.93
7.3.200.0140.00516.93
7.3.190.0150.00516.94
7.3.180.0150.00516.95
7.3.170.0150.00416.96
7.3.160.0140.00516.95
7.3.150.0140.00516.93
7.3.140.0140.00516.93
7.3.130.0140.00516.94
7.3.120.0140.00516.94
7.3.110.0140.00516.90
7.3.100.0140.00416.88
7.3.90.0150.00417.16
7.3.80.0140.00516.94
7.3.70.0140.00517.02
7.3.60.0140.00517.03
7.3.50.0140.00517.03
7.3.40.0140.00517.03
7.3.30.0140.00417.03
7.3.20.0160.00418.08
7.3.10.0150.00518.02
7.3.00.0150.00518.04

preferences:
115.46 ms | 475 KiB | 5 Q