3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected $count = 0; function construct() { echo $this->count; } function test() { echo ++$this->count; } function show() { echo $this->count; } } $t = new Test(); $t->test(); $t->show();

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.01018.30
8.3.50.0090.00618.42
8.3.40.0060.00918.73
8.3.30.0080.00818.70
8.3.20.0050.00220.34
8.3.10.0000.00820.36
8.3.00.0030.00621.86
8.2.180.0090.00916.75
8.2.170.0070.01022.96
8.2.160.0040.01222.25
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0070.00021.03
8.2.120.0040.00426.35
8.2.110.0030.00620.39
8.2.100.0040.00718.05
8.2.90.0050.00319.34
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0050.00317.93
8.2.50.0050.00318.09
8.2.40.0040.00420.38
8.2.30.0040.00419.43
8.2.20.0030.00517.74
8.2.10.0000.00818.05
8.2.00.0000.00717.98
8.1.280.0070.01425.92
8.1.270.0030.01322.15
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0050.00524.00
8.1.230.0000.01217.79
8.1.220.0050.00317.79
8.1.210.0000.00918.77
8.1.200.0090.00017.23
8.1.190.0030.00517.22
8.1.180.0070.00018.10
8.1.170.0050.00318.67
8.1.160.0000.00720.60
8.1.150.0000.00718.74
8.1.140.0050.00319.48
8.1.130.0000.00717.63
8.1.120.0040.00417.45
8.1.110.0050.00217.32
8.1.100.0040.00417.29
8.1.90.0040.00417.30
8.1.80.0070.00017.29
8.1.70.0000.00717.38
8.1.60.0040.00417.59
8.1.50.0030.00617.52
8.1.40.0040.00417.41
8.1.30.0100.00017.63
8.1.20.0000.01017.57
8.1.10.0000.00817.57
8.1.00.0030.00517.41
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0040.00418.35
8.0.270.0070.00017.26
8.0.260.0030.00317.16
8.0.250.0000.00716.98
8.0.240.0050.00316.98
8.0.230.0040.00416.96
8.0.220.0000.00716.82
8.0.210.0030.00516.70
8.0.200.0070.00016.76
8.0.190.0070.00016.80
8.0.180.0110.00016.88
8.0.170.0040.00416.88
8.0.160.0000.00716.91
8.0.150.0040.00316.81
8.0.140.0000.00916.77
8.0.130.0000.00613.22
8.0.120.0080.00316.69
8.0.110.0000.00816.82
8.0.100.0030.00316.61
8.0.90.0000.00716.84
8.0.80.0030.01216.87
8.0.70.0040.00416.88
8.0.60.0040.00416.71
8.0.50.0030.00516.72
8.0.30.0090.00917.14
8.0.20.0080.01417.40
8.0.10.0040.00416.95
8.0.00.0070.01216.75
7.4.330.0050.00016.71
7.4.320.0040.00416.46
7.4.300.0000.00616.61
7.4.290.0050.00716.43
7.4.280.0000.00716.61
7.4.270.0000.00716.50
7.4.260.0000.00816.39
7.4.250.0040.00416.54
7.4.240.0070.00016.46
7.4.230.0070.00016.69
7.4.220.0040.02116.47
7.4.210.0130.00716.41
7.4.200.0060.00316.63
7.4.160.0080.00816.74
7.4.150.0080.01117.40
7.4.140.0080.01017.86
7.4.130.0090.01016.57
7.4.120.0090.00916.40
7.4.110.0160.00916.42
7.4.100.0060.01216.59
7.4.90.0100.00716.47
7.4.80.0070.01119.39
7.4.70.0080.00816.35
7.4.60.0100.00616.65
7.4.50.0110.00716.25
7.4.40.0140.00716.64
7.4.30.0100.01016.60
7.4.00.0060.00615.01
7.3.330.0020.00213.08
7.3.320.0030.00313.16
7.3.310.0050.00216.12
7.3.300.0000.00716.14
7.3.290.0110.00616.25
7.3.280.0070.00716.27
7.3.270.0070.01017.40
7.3.260.0130.00416.58
7.3.250.0100.01116.32
7.3.240.0130.00616.42
7.3.230.0030.01416.45
7.3.210.0160.00616.51
7.3.200.0040.01316.31
7.3.190.0130.00316.21
7.3.180.0170.00016.27
7.3.170.0060.01016.37
7.3.160.0080.00816.43
7.3.10.0070.01116.34
7.3.00.0070.01016.34
7.2.330.0090.00916.77
7.2.320.0150.00616.73
7.2.310.0070.01416.59
7.2.300.0030.01316.31
7.2.290.0030.01316.39
7.2.130.0150.00016.63
7.2.120.0140.00416.68
7.2.110.0040.00816.21
7.2.100.0190.00416.34
7.2.90.0170.00616.27
7.2.80.0160.00816.61
7.2.70.0400.00916.68
7.2.60.0090.00916.67
7.2.50.0220.00016.83
7.2.40.0390.00916.60
7.2.30.0130.00916.65
7.2.20.0330.00616.86
7.2.10.0430.00616.87
7.2.00.0310.01118.01
7.1.250.0150.00415.45
7.1.200.0060.00615.81
7.1.100.0090.00618.07
7.1.70.0090.00617.00
7.1.60.0070.01719.19
7.1.50.0060.01516.78
7.1.00.0000.08022.51
7.0.200.0410.00614.70
7.0.60.0330.06719.87
7.0.50.0070.06717.72
7.0.40.0100.09020.24
7.0.30.0400.06720.30
7.0.20.0230.06020.16
7.0.10.0070.07020.19
7.0.00.0130.05020.15
5.6.280.0000.03321.16
5.6.210.0230.06320.55
5.6.200.0030.08718.19
5.6.190.0030.05320.50
5.6.180.0400.07320.41
5.6.170.0200.06320.71
5.6.160.0100.03720.39
5.6.150.0130.07718.16
5.6.140.0100.06718.29
5.6.130.0070.07718.24
5.6.120.0130.06021.00
5.6.110.0130.08021.11
5.6.100.0070.08321.11
5.6.90.0070.04720.98
5.6.80.0070.08020.38
5.5.350.0230.04720.50
5.5.340.0070.04017.93
5.5.330.0100.08320.42
5.5.320.0570.07020.30
5.5.310.0300.08020.19
5.5.300.0100.06018.00
5.5.290.0030.08318.07
5.5.280.0070.04020.98
5.5.270.0100.06020.98
5.5.260.0200.07720.77
5.5.250.0000.04320.70
5.5.240.0030.03720.07

preferences:
50.07 ms | 401 KiB | 5 Q