3v4l.org

run code in 300+ PHP versions simultaneously
<?php $el = 'span'; $res = ( $el == 'a' ) ? 'Это a' : (( $el == 'span' ) ? 'Это span' : 'Это не a и не span'); var_dump( $res ); //

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.0110.00418.31
8.3.50.0210.00020.12
8.3.40.0110.00319.92
8.3.30.0080.00818.52
8.3.20.0080.00024.18
8.3.10.0040.01424.66
8.3.00.0050.00226.16
8.2.180.0100.01025.92
8.2.170.0120.00318.83
8.2.160.0120.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00420.94
8.2.110.0040.00719.30
8.2.100.0060.00617.25
8.2.90.0070.00019.08
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0060.00317.80
8.2.50.0060.00318.07
8.2.40.0030.00518.03
8.2.30.0000.00718.04
8.2.20.0000.00820.34
8.2.10.0070.00017.50
8.2.00.0000.00719.09
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.11
8.1.230.0040.00717.52
8.1.220.0020.00517.74
8.1.210.0000.00818.77
8.1.200.0040.00417.11
8.1.190.0030.00617.23
8.1.180.0030.00618.10
8.1.170.0030.00518.54
8.1.160.0040.00418.75
8.1.150.0000.00818.53
8.1.140.0040.00417.42
8.1.130.0000.00718.86
8.1.120.0000.00717.34
8.1.110.0050.00317.33
8.1.100.0040.00417.46
8.1.90.0070.00017.33
8.1.80.0030.00317.32
8.1.70.0000.00717.46
8.1.60.0060.00317.53
8.1.50.0040.00417.52
8.1.40.0040.00417.54
8.1.30.0030.00517.64
8.1.20.0230.00317.63
8.1.10.0260.00317.32
8.1.00.0200.00817.38
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0000.00718.32
8.0.270.0050.00216.75
8.0.260.0030.00318.47
8.0.250.0050.00316.75
8.0.240.0000.00816.77
8.0.230.0050.00316.80
8.0.220.0000.00716.68
8.0.210.0030.00316.85
8.0.200.0040.00416.87
8.0.190.0040.00416.74
8.0.180.0040.00416.84
8.0.170.0030.00516.72
8.0.160.0030.00716.79
8.0.150.0030.00616.64
8.0.140.0140.00816.77
8.0.130.0230.00016.71
8.0.120.0210.00016.67
8.0.110.0110.00816.72
8.0.100.0150.00616.73
8.0.90.0180.00316.72
8.0.80.0210.00016.73
8.0.70.0170.00416.57
8.0.60.0210.00016.85
8.0.50.0140.01016.89
8.0.30.0200.00416.68
8.0.20.0120.00816.93
8.0.10.0180.00516.94
7.4.330.0030.00315.55
7.4.320.0030.00316.38
7.4.300.0030.00316.63
7.4.290.0040.00416.53
7.4.280.0000.00716.58
7.4.270.0180.00616.49
7.4.260.0190.00616.51
7.4.250.0210.00316.55
7.4.240.0140.00316.63
7.4.230.0200.00716.40
7.4.220.0150.00716.59
7.4.210.0130.00816.56
7.4.200.0130.00616.55
7.4.190.0150.00516.51
7.4.180.0140.00416.66
7.4.160.0110.00516.55
7.4.150.0110.00616.38
7.4.140.0160.00416.32
7.4.130.0160.00316.48
7.4.120.0180.00016.27
7.4.110.0100.00716.50
7.4.100.0120.00316.34
7.4.90.0060.01316.40
7.4.80.0160.00616.46
7.4.70.0170.00416.32
7.4.60.0170.00316.25
7.4.50.0150.00316.28
7.4.40.0130.00716.34
7.4.30.0150.00416.22
7.4.20.0140.00516.24
7.4.10.0160.00416.36
7.4.00.0150.00416.38

preferences:
50.98 ms | 400 KiB | 5 Q