3v4l.org

run code in 500+ PHP versions simultaneously
<?php $check = DB::table('user')->where('id', $id)->value('Command'); $databaseValue = '$client->id'; preg_match_all('/^\$([a-z]||[A-Z])\S+/', $databaseValue, $matches); if (!empty($matches)) { $firstVariableOccurance = current(current($matches)); eval("\$value = {$firstVariableOccurance};"); $ex = "{$check}"; dd($ex); } // it return me ^ "status $client->id", i.e. the variable is not executed

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.0070.01018.87
8.5.20.0100.00921.10
8.5.10.0070.01119.80
8.5.00.0100.01223.14
8.4.180.0140.00825.76
8.4.170.0140.00724.01
8.4.160.0190.00823.83
8.4.150.0090.00616.99
8.4.140.0140.00817.79
8.4.130.0120.00717.81
8.4.120.0150.00620.67
8.4.110.0110.00820.56
8.4.100.0140.00618.15
8.4.90.0080.01218.66
8.4.80.0080.00819.43
8.4.70.0100.01117.84
8.4.60.0090.00918.98
8.4.50.0050.00417.90
8.4.40.0120.00624.10
8.4.30.0130.00620.21
8.4.20.0100.01018.04
8.4.10.0160.00322.24
8.3.300.0140.00720.68
8.3.290.0160.00520.82
8.3.280.0120.00718.26
8.3.270.0110.00816.55
8.3.260.0100.00916.57
8.3.250.0110.00918.75
8.3.240.0140.00516.43
8.3.230.0100.01016.54
8.3.220.0080.00516.99
8.3.210.0130.00716.52
8.3.200.0090.01016.32
8.3.190.0090.00918.76
8.3.180.0090.01018.59
8.3.170.0110.00718.60
8.3.160.0110.00716.69
8.3.150.0070.01120.66
8.3.140.0030.00616.64
8.3.130.0000.00818.41
8.3.120.0100.00618.72
8.3.110.0060.00320.94
8.3.100.0030.00624.06
8.3.90.0110.00726.77
8.3.80.0060.00318.31
8.3.70.0100.01016.63
8.3.60.0080.00816.63
8.3.50.0100.01020.04
8.3.40.0130.00021.86
8.3.30.0040.01118.75
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.300.0150.00618.10
8.2.290.0050.00420.52
8.2.280.0140.00318.74
8.2.270.0120.00617.25
8.2.260.0030.00520.37
8.2.250.0080.00016.83
8.2.240.0120.00318.83
8.2.230.0030.00622.58
8.2.220.0090.00637.54
8.2.210.0130.00626.77
8.2.200.0000.00916.75
8.2.190.0140.00716.88
8.2.180.0090.00625.92
8.2.170.0080.00818.95
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0070.00026.16
8.2.110.0080.00320.47
8.2.100.0050.00517.78
8.2.90.0120.00018.85
8.2.80.0000.00917.97
8.2.70.0000.00817.63
8.2.60.0000.01017.93
8.2.50.0060.00318.07
8.2.40.0000.00819.76
8.2.30.0080.00017.88
8.2.20.0000.00722.23
8.2.10.0040.00418.01
8.2.00.0030.00519.11
8.1.340.0130.00719.80
8.1.330.0120.01022.00
8.1.320.0100.00816.31
8.1.310.0140.00416.66
8.1.300.0090.00018.18
8.1.290.0040.00430.84
8.1.280.0100.01025.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00323.77
8.1.230.0090.00322.72
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0000.00817.10
8.1.180.0060.00318.10
8.1.170.0040.00418.59
8.1.160.0000.01018.77
8.1.150.0000.00718.63
8.1.140.0040.00417.19
8.1.130.0030.00618.76
8.1.120.0030.00317.24
8.1.110.0000.00817.32
8.1.100.0000.01117.24
8.1.90.0000.00817.33
8.1.80.0080.00617.26
8.1.70.0120.00317.20
8.1.60.0090.01017.43
8.1.50.0110.00617.43
8.1.40.0120.00517.37
8.1.30.0120.00517.51
8.1.20.0130.00417.54
8.1.10.0130.00517.44
8.1.00.0120.00617.44
8.0.300.0100.00018.77
8.0.290.0070.00016.75
8.0.280.0040.00420.21
8.0.270.0030.00317.92
8.0.260.0000.00818.45
8.0.250.0000.00716.98
8.0.240.0030.00316.87
8.0.230.0090.00017.00
8.0.220.0000.00716.75
8.0.210.0080.00716.86
8.0.200.0120.00316.82
8.0.190.0150.00016.88
8.0.180.0110.00416.77
8.0.170.0130.00116.85
8.0.160.0090.00616.89
8.0.150.0070.00716.71
8.0.140.0090.00516.79
8.0.130.0080.00616.74
8.0.120.0120.00316.83
8.0.110.0140.00116.74
8.0.100.0120.00316.78
8.0.90.0090.00516.80
8.0.80.0110.00416.79
8.0.70.0080.00416.83
8.0.60.0080.00216.80
8.0.50.0040.00716.79
8.0.30.0060.00616.84
8.0.20.0050.00516.86
8.0.10.0050.00916.82
7.4.330.0000.00515.55
7.4.320.0070.00016.31
7.4.300.0120.00516.32
7.4.290.0150.00116.49
7.4.280.0150.00316.38
7.4.270.0160.00216.41
7.4.260.0150.00316.45
7.4.250.0100.00716.40
7.4.240.0100.00716.45
7.4.230.0150.00216.32
7.4.220.0070.00816.41
7.4.210.0090.00516.48
7.4.200.0100.00416.39
7.4.190.0100.00316.43
7.4.180.0070.00316.42
7.4.160.0070.00516.46
7.4.150.0100.00116.36
7.4.140.0090.00216.24
7.4.130.0040.00516.23
7.4.120.0040.00516.11
7.4.110.0060.00416.23
7.4.100.0060.00716.37
7.4.90.0090.00416.33
7.4.80.0060.00516.39
7.4.70.0060.00416.41
7.4.60.0050.00516.11
7.4.50.0060.00416.26
7.4.40.0040.00616.27
7.4.30.0000.00816.33
7.4.20.0020.00616.23
7.4.10.0050.00316.31
7.4.00.0010.00616.35

preferences:
46.97 ms | 1268 KiB | 5 Q