3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Toto { function titi() { echo 'Foo'; } } for ( $i = 0; $i < 100; $i++) { $toto = new Toto; $toto->titi(); echo PHP_EOL; }

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.50
8.3.50.0090.00722.07
8.3.40.0170.00318.53
8.3.30.0080.00819.00
8.3.20.0050.00320.16
8.3.10.0080.00023.43
8.3.00.0030.00717.50
8.2.180.0160.00618.30
8.2.170.0120.00322.96
8.2.160.0070.00720.48
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0120.00626.16
8.2.120.0040.00422.11
8.2.110.0070.00322.23
8.2.100.0110.00417.91
8.2.90.0080.00019.22
8.2.80.0080.00018.00
8.2.70.0050.00517.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0050.00318.09
8.2.30.0040.00417.90
8.2.20.0000.00817.57
8.2.10.0000.00817.70
8.2.00.0030.00517.66
8.1.280.0140.00425.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.84
8.1.230.0080.00318.84
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.22
8.1.190.0000.00917.39
8.1.180.0080.00018.10
8.1.170.0060.00318.66
8.1.160.0070.00021.89
8.1.150.0020.00518.62
8.1.140.0000.00717.45
8.1.130.0030.00317.82
8.1.120.0030.00417.39
8.1.110.0000.00817.42
8.1.100.0040.00317.34
8.1.90.0070.00017.33
8.1.80.0050.00217.45
8.1.70.0000.00717.25
8.1.60.0040.00417.52
8.1.50.0050.00317.54
8.1.40.0000.00817.48
8.1.30.0040.00417.50
8.1.20.0040.00417.67
8.1.10.0040.00417.58
8.1.00.0040.00417.51
8.0.300.0060.00318.77
8.0.290.0030.00517.28
8.0.280.0040.00418.35
8.0.270.0000.00817.30
8.0.260.0000.00716.82
8.0.250.0000.00716.91
8.0.240.0000.00716.92
8.0.230.0030.00716.83
8.0.220.0030.00316.71
8.0.210.0000.00716.75
8.0.200.0030.00316.92
8.0.190.0000.00716.90
8.0.180.0030.00616.86
8.0.170.0030.00516.86
8.0.160.0040.00416.79
8.0.150.0040.00416.73
8.0.140.0070.00016.70
8.0.130.0000.00713.20
8.0.120.0080.00016.69
8.0.110.0070.00016.81
8.0.100.0000.00716.93
8.0.90.0020.00516.87
8.0.80.0040.01116.80
8.0.70.0050.00316.71
8.0.60.0040.00416.77
8.0.50.0050.00316.73
8.0.30.0110.00917.11
8.0.20.0140.01117.40
8.0.10.0040.00416.80
8.0.00.0090.01016.71
7.4.330.0000.00615.04
7.4.320.0030.00316.54
7.4.300.0030.00316.49
7.4.290.0040.00416.50
7.4.280.0070.00016.59
7.4.270.0030.00316.58
7.4.260.0040.00416.50
7.4.250.0040.00416.52
7.4.240.0020.00516.59
7.4.230.0000.00716.52
7.4.220.0150.00316.55
7.4.210.0070.01016.53
7.4.200.0030.00316.48
7.4.190.0000.00816.54
7.4.160.0060.01116.34
7.4.150.0100.01317.40
7.4.140.0110.00817.86
7.4.130.0140.00316.56
7.4.120.0140.00416.48
7.4.110.0070.01016.59
7.4.100.0180.00716.70
7.4.90.0130.00616.50
7.4.80.0120.00619.39
7.4.70.0110.00816.46
7.4.60.0090.01216.31
7.4.50.0060.00316.29
7.4.40.0030.01322.77
7.4.30.0080.00816.43
7.3.330.0000.00613.16
7.3.320.0040.00413.37
7.3.310.0040.00416.32
7.3.300.0000.00716.16
7.3.290.0100.01016.30
7.3.280.0040.01416.27
7.3.270.0110.00817.40
7.3.260.0110.00616.41
7.3.250.0090.01216.47
7.3.240.0130.00616.49
7.3.230.0130.01016.39
7.3.210.0030.01616.39
7.3.200.0060.01219.39
7.3.190.0070.01316.34
7.3.180.0090.00616.42
7.3.170.0150.00916.52
7.3.160.0100.00816.27
7.2.330.0170.00316.70
7.2.320.0100.00716.54
7.2.310.0070.01716.56
7.2.300.0090.00916.72
7.2.290.0070.01116.59
7.1.00.0100.07022.31
7.0.140.0070.07021.92
5.6.280.0030.07721.05
5.0.20.0000.02311.63
5.0.10.0030.02011.63
5.0.00.0030.06311.63
4.3.100.0030.01711.63
4.3.90.0000.03711.63
4.3.80.0030.05011.63
4.3.70.0030.02711.63
4.3.60.0070.03011.63
4.3.50.0030.03711.75
4.3.40.0000.03011.79
4.3.30.0030.03311.79
4.3.20.0000.03711.79
4.3.10.0030.02311.79
4.3.00.0000.03711.79

preferences:
36.91 ms | 401 KiB | 5 Q