3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { const toto = 'truc'; function truc() {echo self::toto;}} class b extends a { const toto = 'tr';} $t=b::toto; echo $t->truc();

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.0150.00316.61
8.3.50.0150.00621.08
8.3.40.0140.00718.96
8.3.30.0040.01118.63
8.3.20.0050.00318.60
8.3.10.0050.00221.46
8.3.00.0080.00017.90
8.2.180.0140.00418.66
8.2.170.0100.00622.96
8.2.160.0030.01019.21
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00019.37
8.2.120.0040.00426.35
8.2.110.0000.01020.89
8.2.100.0060.00617.90
8.2.90.0070.00019.08
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0080.00018.10
8.2.40.0080.00022.15
8.2.30.0040.00419.18
8.2.20.0080.00017.54
8.2.10.0040.00417.93
8.2.00.0070.00018.10
8.1.280.0140.00325.92
8.1.270.0060.00323.72
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0110.00017.71
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00818.84
8.1.160.0040.00419.00
8.1.150.0040.00418.85
8.1.140.0040.00419.50
8.1.130.0000.00717.61
8.1.120.0070.00017.20
8.1.110.0070.00017.28
8.1.100.0040.00417.38
8.1.90.0000.00917.40
8.1.80.0040.00417.29
8.1.70.0030.00317.28
8.1.60.0040.00417.55
8.1.50.0080.00017.57
8.1.40.0000.00817.54
8.1.30.0080.00017.64
8.1.20.0000.00717.52
8.1.10.0030.00517.63
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0030.00318.38
8.0.270.0000.00717.23
8.0.260.0000.00617.20
8.0.250.0030.00316.89
8.0.240.0060.00016.97
8.0.230.0000.00716.92
8.0.220.0000.00716.89
8.0.210.0040.00416.87
8.0.200.0040.00416.96
8.0.190.0040.00416.78
8.0.180.0030.00516.91
8.0.170.0040.00416.95
8.0.160.0070.00016.94
8.0.150.0030.00516.86
8.0.140.0030.00716.72
8.0.130.0030.00313.33
8.0.120.0080.00016.85
8.0.110.0000.00716.89
8.0.100.0080.00016.76
8.0.90.0070.00016.72
8.0.80.0090.00916.86
8.0.70.0050.00316.76
8.0.60.0060.00316.98
8.0.50.0070.00016.92
8.0.30.0060.01217.11
8.0.20.0110.01217.40
8.0.10.0040.00416.95
8.0.00.0110.00716.74
7.4.330.0020.00215.08
7.4.320.0060.00016.49
7.4.300.0060.00016.57
7.4.290.0050.00316.51
7.4.280.0080.00016.60
7.4.270.0040.00416.50
7.4.260.0050.00316.47
7.4.250.0040.00416.47
7.4.240.0000.00716.61
7.4.230.0000.00716.52
7.4.220.0070.01116.63
7.4.210.0040.01116.52
7.4.200.0040.00416.41
7.4.160.0060.00916.45
7.4.150.0150.00917.40
7.4.140.0080.00817.86
7.4.130.0090.00916.53
7.4.120.0130.00516.45
7.4.110.0170.00016.35
7.4.100.0100.00716.51
7.4.90.0130.01016.45
7.4.80.0070.01019.39
7.4.70.0060.01016.40
7.4.60.0080.00816.67
7.4.50.0060.00916.37
7.4.40.0090.01216.47
7.4.30.0140.00716.51
7.4.00.0000.01714.70
7.3.330.0030.00313.11
7.3.320.0060.00013.22
7.3.310.0000.00716.34
7.3.300.0030.00316.29
7.3.290.0110.00616.35
7.3.280.0080.00916.33
7.3.270.0130.00517.40
7.3.260.0130.01016.54
7.3.250.0100.00916.40
7.3.240.0070.01216.50
7.3.230.0040.01916.39
7.3.210.0090.00916.29
7.3.200.0100.00616.58
7.3.190.0150.00016.46
7.3.180.0150.00616.29
7.3.170.0160.01116.34
7.3.160.0060.01316.36
7.2.330.0110.00716.45
7.2.320.0160.00316.27
7.2.310.0080.00816.57
7.2.300.0110.00816.46
7.2.290.0030.01316.49
7.2.60.0000.01416.84
7.2.00.0090.00619.32
7.1.200.0060.00615.78
7.1.100.0000.01317.96
7.1.70.0040.00417.16
7.1.60.0100.01619.25
7.1.50.0060.00616.55
7.1.00.0030.07322.30
7.0.200.0670.00714.50
7.0.60.0100.08021.77
7.0.50.0130.05720.45
7.0.40.0270.06320.30
7.0.30.0330.06320.23
7.0.20.0370.05720.31
7.0.10.0330.06320.31
7.0.00.0200.05320.20
5.6.210.0200.05320.77
5.6.200.0200.05721.22
5.6.190.0370.05321.18
5.6.180.0300.05721.13
5.6.170.0270.06721.22
5.6.160.0170.05320.96
5.6.150.0230.05721.13
5.6.140.0330.05321.05
5.6.130.0200.06721.21
5.6.120.0070.06721.08
5.6.110.0070.06321.15
5.6.100.0200.05021.05
5.6.90.0330.06321.10
5.6.80.0170.05020.43
5.6.70.0230.05720.43
5.6.60.0300.05720.35
5.6.50.0330.05720.45
5.6.40.0270.05720.52
5.6.30.0430.05720.32
5.6.20.0170.05020.39
5.6.10.0230.04720.32
5.6.00.0400.04720.43
5.5.350.4070.04320.30
5.5.340.0170.05020.88
5.5.330.0400.05720.75
5.5.320.0270.06020.71
5.5.310.0330.05320.80
5.5.300.0300.06020.95
5.5.290.0270.05721.03
5.5.280.0170.05720.85
5.5.270.0130.05721.04
5.5.260.0230.05720.87
5.5.250.0330.06320.77
5.5.240.0100.06020.13
5.5.230.0130.06020.23
5.5.220.0300.05320.12
5.5.210.0270.05720.15
5.5.200.0330.05320.22
5.5.190.0230.05720.09
5.5.180.0100.05720.18
5.5.160.0370.04320.18
5.5.150.0270.05720.32
5.5.140.0270.05320.10
5.5.130.0200.06020.18
5.5.120.0300.06720.07
5.5.110.0230.05720.14
5.5.100.0100.05720.04
5.5.90.0070.05720.17
5.5.80.0130.05020.07
5.5.70.0470.05720.09
5.5.60.0370.04320.26
5.5.50.0270.06020.16
5.5.40.0230.06020.08
5.5.30.0130.06720.13
5.5.20.0230.06319.98
5.5.10.0430.04720.16
5.5.00.0300.05720.07

preferences:
104.85 ms | 401 KiB | 5 Q